Add support to allow CRD conversion webhooks from outside of the cluster
Related to #3876 Signed-off-by: Anton Johansson <hello@anton-johansson.com>
This commit is contained in:
parent
27d916edfa
commit
96a0859ac7
@ -30,10 +30,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- name: v1alpha2
|
||||
subresources:
|
||||
|
||||
@ -30,10 +30,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- name: v1alpha2
|
||||
subresources:
|
||||
|
||||
@ -28,10 +28,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.state
|
||||
|
||||
@ -27,10 +27,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- name: v1alpha2
|
||||
subresources:
|
||||
|
||||
@ -27,10 +27,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- name: v1alpha2
|
||||
subresources:
|
||||
|
||||
@ -28,10 +28,14 @@ spec:
|
||||
webhook:
|
||||
conversionReviewVersions: ["v1", "v1beta1"]
|
||||
clientConfig:
|
||||
{{- if .Values.webhook.url.host }}
|
||||
url: https://{{ .Values.webhook.url.host }}/convert
|
||||
{{- else }}
|
||||
service:
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
name: '{{ template "webhook.fullname" . }}'
|
||||
name: {{ template "webhook.fullname" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
path: /convert
|
||||
{{- end }}
|
||||
versions:
|
||||
- name: v1alpha2
|
||||
subresources:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user