Skip to content

Commit 426092e

Browse files
Merge pull request #288 from abyrne55/OSD-20193-2
Add webhook service to HCP allowlist
2 parents 2dd186b + ea31d55 commit 426092e

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
@@ -598,6 +598,9 @@ func createService() *corev1.Service {
598598
},
599599
Labels: map[string]string{
600600
"name": serviceName,
601+
// hosted-cluster-config-operator label for HOSTEDCP-1063 compliance,
602+
// i.e., adding our webhook's service to the HCP webhook allowlist
603+
"hypershift.openshift.io/allow-guest-webhooks": "true",
601604
},
602605
Name: serviceName,
603606
Namespace: *namespace,

build/selectorsyncset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ objects:
130130
service.beta.openshift.io/serving-cert-secret-name: webhook-cert
131131
creationTimestamp: null
132132
labels:
133+
hypershift.openshift.io/allow-guest-webhooks: "true"
133134
name: validation-webhook
134135
name: validation-webhook
135136
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)