Skip to content

Fix issue with class-label webhook#18

Merged
DanNiESh merged 1 commit into
OCP-on-NERC:mainfrom
IsaiahStapleton:feature
Jul 10, 2025
Merged

Fix issue with class-label webhook#18
DanNiESh merged 1 commit into
OCP-on-NERC:mainfrom
IsaiahStapleton:feature

Conversation

@IsaiahStapleton
Copy link
Copy Markdown
Collaborator

The current issue with the assign-class-label webhook is that if the webhook pod goes down and the deployment tries to spin it back up, it fails. This is because the MutatingWebhookConfiguration is trying to call the webhook on the webhook pod, but there is no webhook pod so it fails to create. This commit
makes it so that the MutatingWebhookConfiguration does not call the webhook on the webhook pod, that way if the pod goes down and tries to spin back up it is able to without failing.

This commit also changes replicas for the webhook pod to 2. Also adds the secret.yaml to the kustomization.yaml file.

The current issue with the assign-class-label webhook is that if the
webhook pod goes down and the deployment tries to spin it back up, it
fails. This is because the MutatingWebhookConfiguration is trying to
call the webhook on the webhook pod, but there is no webhook pod so it
fails to create. This commit
makes it so that the MutatingWebhookConfiguration does not call the
webhook on the webhook pod, that way if the pod goes down and tries to
spin back up it is able to without failing because there is no webhook
pod.

This commit also changes replicas for the webhook pod to 2.
Also adds the secret.yaml to the kustomization.yaml file.

Signed-off-by: Isaiah Stapleton <istaplet@redhat.com>
@DanNiESh DanNiESh merged commit b59331c into OCP-on-NERC:main Jul 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants