Files
open-cluster-management/manifests/cluster-manager/hub/registration/webhook-service-hosted.yaml
Wei Liu 5bac053fe0
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 2m2s
Post / coverage (push) Failing after 39m59s
Post / images (amd64, addon-manager) (push) Failing after 8m42s
Post / images (amd64, placement) (push) Failing after 7m45s
Post / images (amd64, registration) (push) Failing after 7m51s
Post / images (amd64, registration-operator) (push) Failing after 7m38s
Post / images (amd64, work) (push) Failing after 7m44s
Post / images (arm64, addon-manager) (push) Failing after 7m51s
Post / images (arm64, placement) (push) Failing after 7m48s
Post / images (arm64, registration) (push) Failing after 7m55s
Post / images (arm64, registration-operator) (push) Failing after 7m49s
Post / images (arm64, work) (push) Failing after 7m50s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Close stale issues and PRs / stale (push) Successful in 54s
using dir to reorg cluster-manager manifests (#1112)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2025-08-18 09:38:43 +00:00

30 lines
682 B
YAML

{{if .RegistrationWebhook.IsIPFormat}}
kind: Service
apiVersion: v1
metadata:
name: cluster-manager-registration-webhook
namespace: {{ .ClusterManagerNamespace }}
labels:
{{ if gt (len .Labels) 0 }}
{{ range $key, $value := .Labels }}
"{{ $key }}": "{{ $value }}"
{{ end }}
{{ end }}
spec:
type: ClusterIP
ports:
- protocol: TCP
port: {{.RegistrationWebhook.Port}}
targetPort: {{.RegistrationWebhook.Port}}
name: tls
{{else}}
apiVersion: v1
kind: Service
metadata:
name: cluster-manager-registration-webhook
namespace: {{ .ClusterManagerNamespace }}
spec:
type: ExternalName
externalName: {{.RegistrationWebhook.Address}}
{{end}}