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

With kubernetes/eks 1.30 or higher and sleep lifecycle the controller not restart deployment #757

Merged

Conversation

mlophez
Copy link
Contributor

@mlophez mlophez commented Oct 3, 2024

Ref: #754

When using Kubernetes 1.30 or higher, the Deployment object adds new lifecycle policies, such as sleeplifecycle.
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/

When you add this, the controller throws the following error and not restart deployment:

This happens because, in the current project libraries, the Deployment object does not have those properties.
When we updated the project's libraries to version 1.31, the problem was resolved.

´´´
go get k8s.io/api@v0.31.1
go get k8s.io/apimachinery@v0.31.1
go get k8s.io/client-go@v0.31.1
go get k8s.io/kubectl@v0.31.1
´´´

Only i update kubernetes library to minimize impact.

MuneebAijaz
MuneebAijaz previously approved these changes Nov 20, 2024
@karl-johan-grahn
Copy link
Contributor

@mlophez can you address the failing lints in the build?

@karl-johan-grahn karl-johan-grahn merged commit e2592dd into stakater:master Dec 4, 2024
5 checks passed
@pareion
Copy link

pareion commented Dec 10, 2024

@karl-johan-grahn Is there a release underway or can we request one, as we are waiting on this change.

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.

4 participants