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

spec.Image field always overwritten by Operand image for CVE releases #1817

Closed
ryanemerson opened this issue May 17, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@ryanemerson
Copy link
Contributor

If a user provides a customer image via spec.image, then the StatefulSet is initially provisioned with the specified image. However, the Operator then determines that the provisioned image is not the same as the image associated with spec.version and initialises a rolling upgrade of the StatefulSet resulting in the Operand image value always being used.

statefulset_updates.go needs to be updated to not initiate a rolling upgrade if the container image matches the one provided by spec.image.

This only occurs if the configured spec.version relates to an Operand that is marked as a CVE release.

Workaround

As a custom image is being used, it's possible to update the spec.version to an Operand that is not marked as a CVE release.

@ryanemerson ryanemerson added the bug Something isn't working label May 17, 2023
ryanemerson added a commit to ryanemerson/infinispan-operator that referenced this issue May 17, 2023
ryanemerson added a commit to ryanemerson/infinispan-operator that referenced this issue May 17, 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
None yet
Development

No branches or pull requests

1 participant