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

Kubernetes Object Status may not execute for some Kubernetes steps when using a Kubernetes agent #8789

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

Comments

@APErebus
Copy link

APErebus commented May 14, 2024

Severity

No response

Version

2024.2 onwards

Latest Version

I could reproduce the problem in the latest build

What happened?

The Kubernetes Object Status does not run for certain Kubernetes steps when using a Kubernetes Agent. Notably, the Deploy Containers step.

image

Reproduction

  1. Create deploy containers k8s step
  2. enable KOS
  3. Deploy and note that KOS doesn't run (and claims to not be enabled)

Error and Stacktrace

No response

More Information

This appears to be an issue in Calamari where the Kubernetes Object Status code is not executed as certain variables are not set

Workaround

A simple workaround is to add a project variable Octopus.Action.Kubernetes.AksClusterName with a non-empty string value. To avoid any issues with non-Kubernetes agents, scope this variable to your Kubernetes agent deployment target.

image

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

Release Note: Fixed an issue where Kubernetes Object Status didn't run for certain Kubernetes steps when deploying via Kubernetes agents

@Octobob
Copy link
Member

Octobob commented May 16, 2024

🎉 The fix for this issue has been released in:

Release stream Release
2024.2 2024.2.8848
2024.3+ 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