-
Notifications
You must be signed in to change notification settings - Fork 50
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
ObjectStorageS3Secret field is immutable #1096
Comments
Hi @StopMotionCuber, Thank you for the detailed description!
After that, as you mentioned, the operator will automatically update the settings.py file and restart pulpcore pods to get the new configuration. |
Ah, I see. Yes, updating the secret was the approach that we followed in the end. What I think is a bad design for an operator is to change the |
I totally agree with you on the usage of validating webhook. The Pulp team is open to discussion and criticism, please, do criticize pulp-operator. The community feedback is very valuable. |
Version
Pulp operator
v1.0.0-beta.1
, Imagequay.io/pulp/pulp-operator@sha256:ab39229f535d6eaeaa7502e39581ba0c89319400512ac51f99ee8b905449b617
Pulp version is 3.32
Describe the bug
I was trying to update the
ObjectStorageS3Secret
field (orobject_storage_s3_secret
in json representation),as we wanted to move to a new S3 bucket
To Reproduce
Steps to reproduce the behavior:
object_storage_s3_secret
defined. We did so via ArgoCD, but any other means should also workobject_storage_s3_secret
to a new value with another valid secret pointing to an S3 configuration and apply that change to the cluster.Expected behavior
The secret is updated and the
settings.py
is re-rendered. Best case would be that the pods would get restarted to pick up the newsettings.py
Actual Behavior
The following error occurs:
Afterwards the update is reverted and ArgoCD shows the cluster state as out of sync.
Additional context
This is caused by this function. I'm not sure how exactly the logic behind the immutability works, but I think this field should not be immutable
The text was updated successfully, but these errors were encountered: