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

[FEATURE] - Adding Custom Labels #1093

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

gambol99
Copy link
Member

Adding the ability to add additional labels on the pods which run the terraform

@@ -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 }}
Copy link
Member

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 👍

@gambol99 gambol99 changed the title [FEATURE] - Adding Custom Labelling [FEATURE] - Adding Custom Labels Nov 14, 2023
Adding the ability to add additional labels on the pods which run the terraform
@gambol99 gambol99 force-pushed the feat_labels_and_annotations branch from 4e2f431 to 5f3464c Compare November 14, 2023 16:42
Copy link
Contributor

@marcinc marcinc left a comment

Choose a reason for hiding this comment

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

LG

Copy link
Member

@mrsheepuk mrsheepuk left a 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")
}
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

eekk .. too late :-D ..

@gambol99 gambol99 merged commit 6b10c79 into develop Nov 14, 2023
8 checks passed
@gambol99 gambol99 deleted the feat_labels_and_annotations branch November 14, 2023 16:47
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.

3 participants