Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: support annotations in common pod templates #677

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

askervin
Copy link
Contributor

@askervin askervin commented Jul 2, 2021

Annotations can be added to besteffort, burstable and guaranteed pods
through ANN[0-9] environment variables. Example:
CPU=500m MEM=64M ANN0='my.key: "myvalue"' create guaranteed

Copy link
Contributor

@klihub klihub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Maybe we should add support for labels in the same commit while we're at it...

Labels and annotations can be added to besteffort, burstable and
guaranteed pods through ANN[0-9] and LABEL[0-9] environment
variables. Example:
LABEL0='mylbl: "myval"' ANN0='my.key: "myvalue"' create besteffort
@askervin askervin force-pushed the 5DU_e2e_pod_template_annotations branch from d04d8b3 to 8247025 Compare July 2, 2021 12:32
@askervin
Copy link
Contributor Author

askervin commented Jul 2, 2021

Good idea. Support for LABEL0=... LABEL1=.... included to this patch, commit message rephrased.

@codecov-commenter
Copy link

Codecov Report

Merging #677 (8247025) into master (0706260) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #677   +/-   ##
=======================================
  Coverage   36.87%   36.87%           
=======================================
  Files          53       53           
  Lines        6722     6722           
=======================================
  Hits         2479     2479           
  Misses       3984     3984           
  Partials      259      259           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0706260...8247025. Read the comment docs.

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a small note about the naming. I'd prefer using a non-abbreviated name ANNOTATION0 instead of ANN0. Especially as we now have LABEL0 (and not LAB0 for example).

I can live with the abbreviated naming too, if you want to merge this in it's current form, though 😄

@klihub klihub merged commit 6dfe105 into intel:master Jul 5, 2021
@klihub klihub mentioned this pull request Oct 5, 2021
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants