Skip to content

Commit ea31d55

Browse files
committed
Add webhook service to HCP allowlist (HOSTEDCP-1063)
1 parent b2a3251 commit ea31d55

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

build/resources.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ func createService() *corev1.Service {
609609
},
610610
Labels: map[string]string{
611611
"name": serviceName,
612+
// hosted-cluster-config-operator label for HOSTEDCP-1063 compliance,
613+
// i.e., adding our webhook's service to the HCP webhook allowlist
614+
"hypershift.openshift.io/allow-guest-webhooks": "true",
612615
},
613616
Name: serviceName,
614617
Namespace: *namespace,

build/selectorsyncset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ objects:
136136
service.beta.openshift.io/serving-cert-secret-name: webhook-cert
137137
creationTimestamp: null
138138
labels:
139+
hypershift.openshift.io/allow-guest-webhooks: "true"
139140
name: validation-webhook
140141
name: validation-webhook
141142
namespace: openshift-validation-webhook

config/package/resources.yaml.gotmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ metadata:
1616
service.beta.openshift.io/serving-cert-secret-name: webhook-cert
1717
creationTimestamp: null
1818
labels:
19+
hypershift.openshift.io/allow-guest-webhooks: "true"
1920
name: validation-webhook
2021
name: validation-webhook
2122
spec:

pkg/config/namespaces.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)