Skip to content

Follow up on #4855 #4864

Closed Answered by smv5309
smv5309 asked this question in Support
Jun 11, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I was able to solve this issue eventually. I don't know if it requires a ticket but when the webhook files are created/scaffolded using the kubebuilder commands the webhook service was created with the incorrect label selector.

kind: Service
metadata:
  labels:
    app.kubernetes.io/name: my-operator
    app.kubernetes.io/managed-by: kustomize
  name: webhook-service
  namespace: system
spec:
  ports:
    - port: 443
      protocol: TCP
      targetPort: 9443
  selector:
    control-plane: controller-manager
    app.kubernetes.io/name: operator

note the different labeled app.kubernetes.io/name: operator vs app.kubernetes.io/name: my-operator. I have changed the names but essentially my p…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@smv5309
Comment options

Answer selected by camilamacedo86
@camilamacedo86
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants