-
Notifications
You must be signed in to change notification settings - Fork 14
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
[FEATURE] - Adding Custom Labels #1093
Conversation
@@ -80,6 +80,9 @@ spec: | |||
{{- if .Values.controller.templates.job }} | |||
- --job-template={{ .Values.controller.templates.job }} | |||
{{- end }} | |||
{{- range $key, value = Values.controller.jobLabels }} | |||
- --job-label={{ $key }}={{ $value }} | |||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see what you mean about CLI parameter now 👍
Adding the ability to add additional labels on the pods which run the terraform
4e2f431
to
5f3464c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One possibly irrelevant comment, other than that, looks like it would do what is needed 👍
items := strings.Split(item, "=") | ||
if len(items) != 2 { | ||
return nil, errors.New("invalid key=value pair found in slice") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where would these errors come out, would they be surfaced to a user? Could it be better to log and silently ignore invalid values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eekk .. too late :-D ..
Adding the ability to add additional labels on the pods which run the terraform