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

Remove the default value of spec.store from ChepObjectStoreUser template #362

Merged

Conversation

nb-ohad
Copy link
Contributor

@nb-ohad nb-ohad commented Jul 8, 2020

For some reason kubeclient.Get will not remove/empty keys that do not exists in the CR instance. (which make it act a little bit like merge)

For this reason, in the case where our code creates the ChepObjectStoreUser with an empty store name (independent mode), the next reconcile will refill the value from the template (the value will be STORE_NAME)

Removing the value from the template will fix the issue

@nb-ohad nb-ohad requested a review from jackyalbo July 8, 2020 14:39
@nb-ohad nb-ohad changed the title Remove default value from spec.store from ChepObjectStoreUser template Remove the default value of spec.store from ChepObjectStoreUser template Jul 8, 2020
For some reason kubeclient.Get will not remove/empty keys that do not exists in the CR instance. (which make it act a little bit like merge)

For this reason, in the case where our code creates the ChepObjectStoreUser with an empty store name (independent mode), the next reconcile will refill the value from the template (the value will be STORE_NAME)

Removing the value from the template will fix the issue
@nb-ohad nb-ohad force-pushed the ohad-cephobjectstoreuser-store-value-fix branch from 2fc0983 to f82f644 Compare July 8, 2020 14:43
@nb-ohad nb-ohad merged commit 3a54af3 into noobaa:master Jul 8, 2020
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.

None yet

2 participants