-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adding/removing providers in management object results in deletion of managed clusters. #703
Comments
The repro steps suggest that an unused provider has been deleted. According to the mentioned #584 and unmentioned #574 PR where the validation occurs, it is the expected behavior. If the removed provider does not have any UPD. The assumption regarding the In particular case: I suppose the At the time of implementation, there was no airgap feature, JIC. As a suggestion: add the new component to the list of the providers (I believe it is why the section exists in the first place), or the template-ctrl could add extra specific labels during create/update of |
I will disagree. |
I do not quite understand what you disagree with. I've checked by myself, and there is the only suggestion left from the already mentioned: add extra labels |
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
@zerospiel Sorry, probably I misread the original message - had an impression that you're telling that this is normal expected behavior. |
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes k0rdent#703
* add helm-release label to the helmreleases installed by the HMC management part * cleanup helmreleases only if removed and the new label value equals to the mgmt part * small refactor to fix linter Closes #703
Issue
When changing providers (adding or removing) the helm releases connected to managed clusters are being deleted by
management
controller and then immediately recreated bymanagedcluster
controller.Logs:
Repro steps
Cluster
object is created properlycluster-api-provider-aws
)helmrelease
related to managed cluster. Note that creation time was changed and release was recreated.Additional note: When installed in airgap environment a number of public cloud controllers were not initialized properly (on purpose) by no passing airgap flag. This caused deletion and recreation happening every 10 seconds for all ManagedClusters. Unfortunately I couldn't reproduce it properly.
Conclusions
Most probably caused by #584 . It looks like selector is too broad and we should avoid deleting helm releases related to managed cluster.
Also most probably this will not affect managed clusters created in namespaces other than
hmc-system
(not tested).The text was updated successfully, but these errors were encountered: