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

Execution containers are being used for Kubernetes agent #8927

Closed
APErebus opened this issue Jul 22, 2024 · 2 comments
Closed

Execution containers are being used for Kubernetes agent #8927

APErebus opened this issue Jul 22, 2024 · 2 comments
Assignees
Labels
kind/bug This issue represents a verified problem we are committed to solving

Comments

@APErebus
Copy link

Severity

No response

Version

2024.3+

Latest Version

I could reproduce the problem in the latest build

What happened?

When a Kubernetes agent is executing Kubernetes steps, any defined Execution container details (defined under the Kubernetes API target section) are used as the host container for the script pods, as opposed to the predefined tooling containers bundled with the Kubernetes agent.

For all Kubernete steps except for the Run a kubectl script step, the defined execution container details should not be used.

Reproduction

  1. Install a Kubernetes agent deployment target
  2. Configure a simple Deploy YAML Kubernetes step targeting the kubernetes agent target tag
  3. Configure a execution container under the Kubernetes API target details section
  4. Run deployment
  5. Observe (using 3rd party tooling) that the script pod being spun up is the defined execution container, not the default octopusdeploy/kubernetes-agent-tools-base image

Error and Stacktrace

No response

More Information

No response

Workaround

The workaround is to set the execution container option to "Run directly on the worker"

@APErebus APErebus added the kind/bug This issue represents a verified problem we are committed to solving label Jul 22, 2024
@octoreleasebot
Copy link

octoreleasebot commented Jul 22, 2024

Release Note: Resolved an issue where the Kubernetes agent was erroneously using step-configured execution container details as the script pod container image for certain Kubernetes steps

@Octobob
Copy link
Member

Octobob commented Sep 4, 2024

🎉 The fix for this issue has been released in:

Release stream Release
2024.3 2024.3.7669
2024.4+ all releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

3 participants