Skip to content

Commit

Permalink
fix: label name
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed Feb 13, 2024
1 parent 5379db3 commit 021604f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/webhookconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

var (
webhookConfigName = "sidecar-injector-webhook"
webhookConfigName = "env-injector-webhook"
webhookInjectPath = "/inject"
)

Expand All @@ -40,7 +40,7 @@ func createOrUpdateMutatingWebhookConfiguration(caPEM *bytes.Buffer, webhookServ
Name: webhookConfigName,
},
Webhooks: []admissionregistrationv1.MutatingWebhook{{
Name: "sidecar-injector.morven.me",
Name: admissionWebhookAnnotationBase,
AdmissionReviewVersions: []string{"v1", "v1beta1"},
SideEffects: &sideEffect,
ClientConfig: admissionregistrationv1.WebhookClientConfig{
Expand All @@ -66,7 +66,7 @@ func createOrUpdateMutatingWebhookConfiguration(caPEM *bytes.Buffer, webhookServ
},
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"sidecar-injection": "enabled",
"env-injection": "enabled",
},
},
FailurePolicy: &fail,
Expand Down

0 comments on commit 021604f

Please sign in to comment.