Skip to content

fix: Template image for Helm Cleanup job due to bitnami updates#4242

Closed
DaThumpingRabbit wants to merge 2 commits intoagones-dev:mainfrom
DaThumpingRabbit:fix/bitnami-image
Closed

fix: Template image for Helm Cleanup job due to bitnami updates#4242
DaThumpingRabbit wants to merge 2 commits intoagones-dev:mainfrom
DaThumpingRabbit:fix/bitnami-image

Conversation

@DaThumpingRabbit
Copy link
Copy Markdown

What type of PR is this?
/kind hotfix

What this PR does / Why we need it:
Following this update bitnami/charts#35164, it will not be possible to keep using the kubectl image from bitnami for all users
This PR allows to choose what image to use to run the post-delete cleanup job and default on the best alternative I could find at the moment rancher/kubectl

Special notes for your reviewer:
Please let me know if bitnami should stay the default registry based on your guidelines

@google-cla
Copy link
Copy Markdown

google-cla bot commented Aug 12, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added kind/hotfix Hotfixes for issues against release size/XS labels Aug 12, 2025
Signed-off-by: sbene <Sebastien.bene.SbBn@gmail.com>
@markmandel
Copy link
Copy Markdown
Collaborator

🤔 seems like a reasonable change - just wondering why we want to make it configurable? Might as well just switch to the rancher version and call it a day.

Just a question of ongoign maintenance and documentation.

@markmandel
Copy link
Copy Markdown
Collaborator

Just noted, there is an official kubectl image: https://www.reddit.com/r/kubernetes/s/1rDLvH7rtR

We provide an official kubectl image these days:
registry.k8s.io/kubectl:v1.33.3

Fair warning for production dependency on this host: https://registry.k8s.io#stability

TLDR this is volunteer operated and you're not paying us for an SLA. Mirror if you need uptime guaranteed, docs provided for doing that.

Also, kubectl is a single static go binary, so making an image for it is pretty trivial.

@DaThumpingRabbit
Copy link
Copy Markdown
Author

Just noted, there is an official kubectl image: https://www.reddit.com/r/kubernetes/s/1rDLvH7rtR

I saw the image you mentioned but was a bit afraid about the stability warning
I have never used it so I don't know if it will be safe enough

🤔 seems like a reasonable change - just wondering why we want to make it configurable? Might as well just switch to the rancher version and call it a day.

Just a question of ongoign maintenance and documentation.

About this, I thought that maybe if some customers are paying the new bitnami secure package, they might want to switch back to bitnami
However if that makes more sense for you to just switch it, I am fine with that as well

@DaThumpingRabbit
Copy link
Copy Markdown
Author

@markmandel I have just made some tests and I don't think that this new image will be a good fit anyway since it does not come with a shell and won't work in that scenario

Only alternative to bitnami I found for now that comes with a shell is alpine/k8s
It has way more things than is needed but did not find a better option for now

Please let me know if this would be a good alternative for this

@markmandel
Copy link
Copy Markdown
Collaborator

markmandel commented Sep 1, 2025

Apologies - this totally fell through the cracks.

I did some pocking around - Looks like https://hub.docker.com/r/alpine/kubectl has an sh shell which is all we need, and it's nice and small.

Sound good?

markmandel added a commit to markmandel/agones that referenced this pull request Sep 7, 2025
Since Bitnami is doing stuff with their images, moving this to the
alpine/kubectl image instead.

It's a little ahead of what we use version wise -- but the helm
job is very basic, and this is updated regularly, has a sh shell
and has multiple architectures by default.

Replaces PR agones-dev#4242 which seems to have stagnated.
@markmandel
Copy link
Copy Markdown
Collaborator

Hope you don't mind - I ended up doing what I suggested in #4268

lacroixthomas added a commit that referenced this pull request Sep 7, 2025
Since Bitnami is doing stuff with their images, moving this to the
alpine/kubectl image instead.

It's a little ahead of what we use version wise -- but the helm
job is very basic, and this is updated regularly, has a sh shell
and has multiple architectures by default.

Replaces PR #4242 which seems to have stagnated.

Co-authored-by: Thomas Lacroix <thomas.lacroix@ubisoft.com>
@markmandel
Copy link
Copy Markdown
Collaborator

Closing, since I took care of this in #4268

Thanks for the heads up though!

@markmandel markmandel closed this Sep 7, 2025
@DaThumpingRabbit
Copy link
Copy Markdown
Author

Yes sorry I also completely forgot about this
This is perfect for me, thanks for handling it 👍

@DaThumpingRabbit DaThumpingRabbit deleted the fix/bitnami-image branch September 10, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/hotfix Hotfixes for issues against release size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants