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

Add a Github Action workflow with "helm lint" #14

Closed
wants to merge 19 commits into from

Conversation

maelvls
Copy link
Member

@maelvls maelvls commented Feb 10, 2021

We realized with Richard that

helm lint ./chart/jetstacksecure-mp

could help us catch simple typos like wrong variable names.

maelvls and others added 19 commits January 29, 2021 17:05
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
As detailed in [1], CRDs that are applied through the CRD pre-install hook
will not ever be updated or upgraded. The Helm documentation reads [4]:

> The resources that a hook creates are not tracked or managed as part of
> the release. Once Tiller verifies that the hook has reached its ready
> state, it will leave the hook resource alone.
>
> Practically speaking, this means that if you create resources in a hook,
> you cannot rely upon helm delete to remove the resources. To destroy such
> resources, you need to either write code to perform this operation in a
> pre-delete or post-delete hook or add "helm.sh/hook-delete-policy"
> annotation to the hook template file.

On top of that, it seems to be not possible (after multiple trials) to
manage CRDs using Helm 3's crd-install hook using the crds/ folder [2]. It
seems like the only way would be to bundle crds inside the templates/ like
cert-manager has been doing for a while.

Note that installing CRDs using the templates/ way also causes trouble. Rob
Percival mentions in [1] that Helm has a problem with the CRD ordering [3]
and that the issue has not been fixed yet, which means installing operators
like google-cas-issuer breaks when the CRDs are inside templates/.

[1]: GoogleCloudPlatform/marketplace-k8s-app-tools#303
[2]: https://helm.sh/docs/developing_charts/#defining-a-crd-with-the-crd-install-hook
[3]: helm/helm#2994
[4]: https://v2.helm.sh/docs/developing_charts/#hook-resources-are-not-managed-with-corresponding-releases

Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Jake Sanders <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Jake Sanders <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
Co-authored-by: Richard Wall <[email protected]>
@maelvls maelvls added this to the next milestone Feb 11, 2021
@maelvls
Copy link
Member Author

maelvls commented Mar 23, 2021

We will re-open a new PR with these changes as soon as we get to work on #31. Closing now.

/close

@jetstack-bot
Copy link
Contributor

@maelvls: Closed this PR.

In response to this:

We will re-open a new PR with these changes as soon as we get to work on #31. Closing now.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@maelvls maelvls deleted the add-helm-lint-in-ci branch November 3, 2021 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants