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

Reorder environment variables #570

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Reorder environment variables #570

merged 2 commits into from
Jun 20, 2024

Conversation

chunter0
Copy link
Contributor

Description

Update operator deployment template to ensure templated environment variables have the lowest priority incases where environment variables are duplicated

@chunter0 chunter0 requested a review from josh-pritchard June 20, 2024 12:05
Copy link
Contributor

@jjamroga jjamroga left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +100 to +101
Expect(renderedDeployment.Spec.Template.Spec.Containers[0].Env[0]).To(Equal(v1.EnvVar{Name: "ENV_VAR", Value: "templated"}))
Expect(renderedDeployment.Spec.Template.Spec.Containers[0].Env[1]).To(Equal(v1.EnvVar{Name: "ENV_VAR", Value: "default"}))
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: In the future, there are Gomega list operators that do assert order, I think it's gomega.HaveExactElements

@soloio-bulldozer soloio-bulldozer bot merged commit 1583cb7 into main Jun 20, 2024
3 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the chunter/env-priority branch June 20, 2024 13:46
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