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

helm install --skip-crds doesn't work with policy-controller chart #740

Open
dszakallas opened this issue Apr 17, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@dszakallas
Copy link

dszakallas commented Apr 17, 2024

Description

I am trying to install a release of policy-controller helm chart with externally managed CRDs. First, I tried to set
installCRDs: false, but that has no effect. In fact, there's no template branch using this value.
Then, I tried to set --skip-crds with Helm but that doesn't work as the CRDs have to be put in crds directory (not templates/crds), and as a consequence, cannot be templated, which is a problem for clusterimagepolicy

Please provide a way to skip installing the CRDs.
Version

policy-controller 0.6.8

@dszakallas dszakallas added the bug Something isn't working label Apr 17, 2024
@dszakallas dszakallas changed the title helm install --skip-crds doesn't work with policy-controller chart. helm install --skip-crds doesn't work with policy-controller chart Apr 17, 2024
@dszakallas
Copy link
Author

the original functionality was removed here: e637393

@dszakallas
Copy link
Author

As a work around for anyone using the kustomize postrenderer, the CRDs can be removed with applying these patches to the templated output:

patches:
  - patch: |-
      $patch: delete
      apiVersion: apiextensions.k8s.io/v1
      kind: CustomResourceDefinition
      metadata:
        name: clusterimagepolicies.policy.sigstore.dev
  - patch: |-
      $patch: delete
      apiVersion: apiextensions.k8s.io/v1
      kind: CustomResourceDefinition
      metadata:
        name: trustroots.policy.sigstore.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant