Skip to content

Commit

Permalink
revert webhook file
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Jul 13, 2022
1 parent 0a384cb commit df11e69
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions helm-charts/seldon-core-operator/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
{{- $cert := genSignedCert "seldon-webhook-service" nil $altNames 365 $ca -}}
---

{{- if not .Values.certManager.enabled -}}
apiVersion: v1
data:
ca.crt: '{{ $ca.Cert | b64enc }}'
tls.crt: '{{ $cert.Cert | b64enc }}'
tls.key: '{{ $cert.Key | b64enc }}'
kind: Secret
metadata:
name: seldon-webhook-server-cert
namespace: '{{ include "seldon.namespace" . }}'
type: kubernetes.io/tls
{{- end }}
---

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand All @@ -20,7 +34,9 @@ webhooks:
- v1
- v1beta1
clientConfig:
{{- if not .Values.certManager.enabled }}
caBundle: '{{ $ca.Cert | b64enc }}'
{{- end }}
service:
name: seldon-webhook-service
namespace: '{{ include "seldon.namespace" . }}'
Expand Down Expand Up @@ -70,19 +86,5 @@ webhooks:
resources:
- seldondeployments
sideEffects: None
---

{{- if not .Values.certManager.enabled -}}
apiVersion: v1
data:
ca.crt: '{{ $ca.Cert | b64enc }}'
tls.crt: '{{ $cert.Cert | b64enc }}'
tls.key: '{{ $cert.Key | b64enc }}'
kind: Secret
metadata:
name: seldon-webhook-server-cert
namespace: '{{ include "seldon.namespace" . }}'
type: kubernetes.io/tls
{{- end }}

{{- end }}

0 comments on commit df11e69

Please sign in to comment.