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

ISSUE: cass-operator webhooks require cert-manager to be installed in the cluster #625

Closed
KDool opened this issue Mar 26, 2024 · 2 comments
Labels
bug Something isn't working done Issues in the state 'done'

Comments

@KDool
Copy link

KDool commented Mar 26, 2024

What happened?

I used the helm chart to deploy cass-operator into namespace cassandra.

When I ran the helmfile install , it raised the error:
execution error at (cassandra/charts/cass-operator/templates/webhook-service.yaml:6:6): cass-operator webhooks require cert-manager to be installed in the cluster.

It is so strange because I already installed cert-manager in my k8s cluster (in cert-manager namespace).

I then tried to modify values.yaml file to disable webhook install cert-manager like following:
global: clusterScoped: true admissionWebhooks: enabled: false disableCertManagerCheck: true
but it was still the same error message.

What did you expect to happen?

I expect to run the helm install successfully, because I already had cert-manager in the cluster

How can we reproduce it (as minimally and precisely as possible)?

Cert-manager

  • Install cert-manager on namespace cert-manager

Cass-operator

  • Make a chart.yaml and a values.yaml file.
  • in helmfile.yaml, config values.yaml is the value file that the chart will use.
  • run install on namespace cassandra

cass-operator version

0.46.2

Kubernetes version

v1.26.11-gk2.1055000

Method of installation

Helm

Anything else we need to know?

No response

@KDool KDool added the bug Something isn't working label Mar 26, 2024
@burmanm
Copy link
Contributor

burmanm commented Mar 26, 2024

The cert-manager check requires the presence of cert-manager CRDs, it does not really check if cert-manager is installed. Are you sure you installed the CRDs when installing cert-manager? The default settings in Helm chart for cert-manager does not install CRDs.

Also, disabling webhooks or disabling the check will remove the verification. It sounds like there's an issue in a helmfile if none of your settings have any effect. Have you tried without helmfile, instead running just plain helm?

@KDool
Copy link
Author

KDool commented Mar 27, 2024

Hi, I checked cert-manager CRDs, it's already installed when I install cert-manager.

I've tried to install cass-operator using Helm insteal of helmfile, it's succeed.

@KDool KDool closed this as completed Mar 29, 2024
@adejanovski adejanovski added done Issues in the state 'done' labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Issues in the state 'done'
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants