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

Fix script pod image pull policy env var #358

Merged

Conversation

APErebus
Copy link
Contributor

The environment variable in Tentacle was named SCRIPTPODPULLPOLICY not SCRIPTPODIMAGEPULLPOLICY.

https://github.com/OctopusDeploy/OctopusTentacle/blob/main/source/Octopus.Tentacle/Kubernetes/KubernetesConfig.cs#L44

@APErebus APErebus requested a review from a team as a code owner December 16, 2024 23:08
Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: 45d347a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kubernetes-agent Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@APErebus APErebus changed the base branch from main to release/kubernetes-agent/v1 December 16, 2024 23:09
Copy link
Contributor

@liam-mackie liam-mackie left a comment

Choose a reason for hiding this comment

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

Nice work! Minor question about tests, but the change itself is good :shipit:

@@ -374,7 +374,7 @@ tests:
path: spec.template.spec.containers[0].env[?(@.name == 'OCTOPUS__K8STENTACLE__SCRIPTPODIMAGETAG')].value
value: "1.0.0-deploymentTarget"
- equal:
path: spec.template.spec.containers[0].env[?(@.name == 'OCTOPUS__K8STENTACLE__SCRIPTPODIMAGEPULLPOLICY')].value
path: spec.template.spec.containers[0].env[?(@.name == 'OCTOPUS__K8STENTACLE__SCRIPTPODPULLPOLICY')].value
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there also a test for the worker that uses the same variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in the v2 chart yeah, will do that in the forward merge

@APErebus APErebus enabled auto-merge (squash) December 16, 2024 23:17
@APErebus APErebus merged commit 897f59b into release/kubernetes-agent/v1 Dec 16, 2024
7 checks passed
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.

2 participants