[BOP-14][BOP-40] Support for deleting addon helm charts, namespaced addon helm charts #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes it so the namespace specified in the blueprint for Addons is the one that is used for deploying the helm chart. The Addon CRD itself is deployed in the
boundless-system
namespace.Additionally this PR adds support for deletion of addons. When an addon is removed from a blueprint and we run update with the modified blueprint, the addon that is no longer present in the blueprint should now be deleted.
Testing
Manually tested
Step 1. Apply blueprint with grafana addon
Result:
The Addon CRD is deployed in
boundless-system
namespace, whereas the grafana helmchart is correctly deployed inmonitoring
namespace.Step 2: Update the namespace to
monitoring2
and apply again.Result:
The helm chart has now been moved to
monitoring2
namespace.Step 3: Now remove the addons section and update again.
Result:
Addons are cleaned up, nothing exists in either
monitoring
ormonitoring2
namespace. The namespaces do still exist. I'm not sure at this point how we want to handle clean up of namespaces if we have no addons in those namespaces. Since it is possible users created something of their own in that namespace in the meantime.Testing multiple of the same helm charts
Result:
And deleting
example
addon deletes just the addon we want: