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

Should image config customisations be handled atomically? #1142

Open
Miles-Garnsey opened this issue Dec 19, 2023 · 0 comments
Open

Should image config customisations be handled atomically? #1142

Miles-Garnsey opened this issue Dec 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Miles-Garnsey
Copy link
Member

Miles-Garnsey commented Dec 19, 2023

What happened?

A user asked a question on the discord server, where he'd put a custom image configuration in the spec and received an unexpected result.

https://discord.com/channels/836217371453685760/836217371453685763/1184189918457639035

spec:
  reaper:
    containerImage:
      registry: 'docker.mirrors.local'


Result:
  reaper:
    ServiceAccountName: default
    containerImage:
      registry: docker.mirrors.local
      tag: latest


expected:
  reaper:
    containerImage:
      name: cassandra-reaper
      registry: docker.mirrors.local
      repository: thelastpickle
      tag: 3.4.0

I think this is happening because any override of the image configuration overrides the entirety of the default image configuration, and latest is the default value for the image tag (so filled in by the API server) when left unspecified.

If this behaviour is unexpected (and I think it is) it might be advantageous to merge the user and default specs using goalesce so that OUR defaults are propagated instead of the k8s API server defaults.

┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: K8OP-57

@Miles-Garnsey Miles-Garnsey added the bug Something isn't working label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant