-
Notifications
You must be signed in to change notification settings - Fork 79
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
Kustomize files in e2e-tests don't set correct clientConfig.service.namespace in cass-operator ValidatingWebhookConfiguration #397
Comments
It removes the namespace, but not the webhook deployment issue. |
This may be a legit issue so I'm reopening it. @jsanda is correct in saying that #387 addresses the additional namespace and just needs to be merged to solve that problem. The
However, if you do the same on (for e.g.)
@burmanm can you confirm whether you were observing the |
Michael reports that, having rebased his branch, he no longer sees problems with the To ensure that these issues do not return, I have added an additional assertion to the kuttl test If we start seeing that failing elsewhere then we'll need to investigate further, but for now, it may just be that some branches have not been rebased from the most recent kustomize changes. |
Now I'll genuinely reopen this since actually.. there is an issue. Everything works if the namespace is indeed k8ssandra-operator, but once that's changed, things no longer deploy correctly. If I run apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
annotations:
cert-manager.io/inject-ca-from: single-dc-6228xl/cass-operator-serving-cert
name: cass-operator-validating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: cass-operator-webhook-service
namespace: k8ssandra-operator
path: /validate-cassandra-datastax-com-v1beta1-cassandradatacenter Here we see the clientConfig/service/name not being the correct one, but pointing to a wrong namespace. |
Right, this is specific to the tests because they have an additional kustomize overlay which sets the test namespace. That overlay probably doesn't contain the required replacements for the This is a very niche thing, but I have started work to fix it under 415 so that the e2e test kustomizations will be compatible with the cass-operator changes you've made here. |
Closed via #365. |
What happened?
When building control-plane kustomize template, we create one unnecessary namespace: cass-operator:
There's also incorrect cass-operator webhook service deployment:
The clientConfig/service/namespace should be in k8ssandra-operator namespace since that's where the webhook path is also deployed to.
Did you expect to see something different?
How to reproduce it (as minimally and precisely as possible):
build config/deployments/control-plane
The text was updated successfully, but these errors were encountered: