Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

feat!: drop helm v2 and builtin CRD management #663

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Conversation

Flydiverny
Copy link
Member

@Flydiverny Flydiverny commented Mar 18, 2021

Since Helm 2 is EOL this drops helm 2 support and simplifies docs and removes the built in CRD handling depending entirely on them being installed by the user manually or thru helm.

@Flydiverny Flydiverny force-pushed the drop-helm2 branch 2 times, most recently from 9feda3a to ec0082a Compare March 18, 2021 01:13
@Flydiverny Flydiverny self-assigned this Mar 22, 2021
@@ -34,7 +33,8 @@ async function main () {
logger.info('loading kube specs')
await kubeClient.loadSpec()
logger.info('successfully loaded kube specs')
await customResourceManager.manageCrd({ customResourceManifest })

kubeClient.addCustomResourceDefinition(customResourceManifest)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wires up kubeClients fluent api it was dones inside customResourceManager before.

@Flydiverny Flydiverny requested a review from moolen March 22, 2021 03:56
Copy link
Member

@moolen moolen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with the helm v2 setup, but your changes LGTM!

@Flydiverny
Copy link
Member Author

I'm not super familiar with the helm v2 setup, but your changes LGTM!

This is in reality just two different things but I've kind of combined them in my head 😄
Before or currently KES tries to deploy the CRD whenever it starts up. Meaning if you have multiple deployments and they for some reason would be different versions the CRD could be unexpectedly changed by another pod. In the case they all are the same version it shouldn't really cause any issues. This also added the requirement for KES to have RBAC access to create CRDs which seems unnecessary.

When helm 3 support was introduced we discussed a bit and the option to disable the built in CRD management was added with a note to it being removed eventually.
The CRDs could still be installed with the helm chart even if you ran helm 2 or helm 3.

Now the only option remaining will be installing the CRDs thru helm or manually and KES runtime will leave it alone 😄

@Flydiverny Flydiverny merged commit 87a3ecb into master Mar 22, 2021
@Flydiverny Flydiverny deleted the drop-helm2 branch March 22, 2021 23:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants