Skip to content

Add flag to values.yaml controlling installation of CRDsΒ #256

@gecube

Description

@gecube

Preflight Checklist

  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I agree to follow the Code of Conduct.

Problem Description

Good day colleagues!

I want to leverage the whole GitOps approach and deploy all components of cluster in one go. It also applies to vault operator. The issue is that it is difficult now to make a proper order between different manifests. Let say I want to install

apiVersion: "vault.banzaicloud.com/v1alpha1"
kind: "Vault"
metadata:
  name: "vault"

but I can't do it before I will install the operator itself. It applies to different gitops solutions like ArgoCD and FluxCD. I can overrun it and solve by creation a complex configuration, but I don't like it.

Proposed Solution

Introduce the new flag in the values of helm chart like it's implemented in cert-manager:

cert-manager/cert-manager#2330
https://github.com/cert-manager/cert-manager/blob/5141dddf2c0c5e10c5d4452c99a2e260c6eb2983/deploy/charts/cert-manager/values.yaml#L53

The default value will be installCRDs: true. And the behaviour of the chart won't change.
But I will choose installCRDs: false and install CRDs in different kustomization level in proper order.

Alternatives Considered

Split CRDs and the base part of vault operator into different charts (with the synchronous versioning) like it was done in emissary or Linkerd.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementCategorizes issue or PR as related to an improvement.lifecycle/keepDenotes an issue or PR that should be preserved from going stale.

    Type

    No type

    Projects

    Status

    πŸ”– Ready for work

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions