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

KafkaCluster validation fails when custom webhook port is provided #895

Closed
balassai opened this issue Nov 22, 2022 · 1 comment
Closed
Labels
bug Something isn't working community

Comments

@balassai
Copy link
Contributor

Describe the bug
KafkaCluster webhook is not accessible when custom webhook port is provided.
The validations fails because the webhook is not reachable.

Steps to reproduce the issue:
Set the webhook.serverPort in the chart's values yaml.

webhook:
  enabled: true
  serverPort: 8444
#  tls:
#    certDir: ""
  certs:
    generate: true
    secret: "kafka-operator-serving-cert"

Deploy the operator with helm.

helm install kafka charts/kafka-operator

Edit attempt to an existing KafkaCluster resource fails, because the webhook is unreachable.

k edit kafkacluster kafka -n kafka    
error: kafkaclusters.kafka.banzaicloud.io "kafka" could not be patched: Internal error occurred: failed calling webhook "kafkaclusters.kafka.banzaicloud.io": Post "[https://koperator-kafka-operator-operator.kafka.svc:443/validate-kafka-banzaicloud-io-v1beta1-kafkacluster?timeout=10s](https://koperator-kafka-operator-operator.kafka.svc/validate-kafka-banzaicloud-io-v1beta1-kafkacluster?timeout=10s)": dial tcp 10.254.29.128:443: connect: connection refused
You can run `kubectl replace -f /var/folders/8l/6jws9zmx1ng710v4v252b9jm0000gr/T/kubectl-edit-664393602.yaml` to try this update again.

Expected behavior
The webhook shall be reachable when custom webhook port is provided.

Additional context
version: 0.22

@hi-im-aren hi-im-aren added bug Something isn't working community labels Nov 22, 2022
@pregnor
Copy link
Member

pregnor commented Nov 28, 2022

Resolved by #896, thanks.

@pregnor pregnor closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

3 participants