diff --git a/charts/flyte-core/templates/propeller/webhook.yaml b/charts/flyte-core/templates/propeller/webhook.yaml index 4cc05796c53..1ac23ab8e00 100644 --- a/charts/flyte-core/templates/propeller/webhook.yaml +++ b/charts/flyte-core/templates/propeller/webhook.yaml @@ -1,12 +1,42 @@ {{- if .Values.flytepropeller.enabled }} {{- if .Values.webhook.enabled }} -# Create an empty secret that the first propeller pod will populate +{{- $secret := (lookup "v1" "Secret" (include "flyte.namespace" .) "flyte-pod-webhook") -}} apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: {{ template "flyte.namespace" . }} -type: Opaque +type: kubernetes.io/tls +data: +{{- if $secret }} + tls.crt: | + {{ index $secret.data "tls.crt" }} + tls.key: | + {{ index $secret.data "tls.key" }} + ca.crt: | + {{ index $secret.data "ca.crt" }} +{{- else -}} +{{/* Produces a 99 year valid CA and cert signed by the CA like: + https://github.com/flyteorg/flyte/blob/81afb76b44931d827f8e898d097a7e8054a5b836/flytepropeller/cmd/controller/cmd/init_certs.go#L14-L36 +*/}} +{{- $certValid := 36135 -}} +{{- $name := include "flyte-pod-webhook.name" . -}} +{{- $namespace := include "flyte.namespace" . -}} +{{- $svc := (printf "%v.%v" $name $namespace) -}} +{{- $cn := (printf "%v.svc" $svc) -}} +{{- $altnames := (list $name $svc $cn) -}} +{{- $ca := genCA "flyte-ca" $certValid -}} +{{- $cert := genSignedCert $cn nil $altnames $certValid $ca }} + # ca issued cert + tls.crt: | + {{ $cert.Cert | b64enc }} + # private key for cert + tls.key: | + {{ $cert.Key | b64enc }} + # ca cert since the CA is generated here + ca.crt: | + {{ $ca.Cert | b64enc }} +{{- end }} --- # Create the actual deployment apiVersion: apps/v1 @@ -47,40 +77,6 @@ spec: {{- if .Values.webhook.priorityClassName }} priorityClassName: {{ .Values.webhook.priorityClassName }} {{- end }} -{{- if .Values.webhook.enabled }} - initContainers: - - name: generate-secrets - image: "{{ .Values.flytepropeller.image.repository }}:{{ .Values.flytepropeller.image.tag }}" - imagePullPolicy: "{{ .Values.flytepropeller.image.pullPolicy }}" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - {{- if .Values.webhook.podEnv -}} - {{- with .Values.webhook.podEnv -}} - {{- toYaml . | nindent 10 }} - {{- end }} - {{- end }} - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config -{{- end }} containers: - name: webhook image: "{{ .Values.flytepropeller.image.repository }}:{{ .Values.flytepropeller.image.tag }}" diff --git a/deployment/eks/flyte_aws_scheduler_helm_generated.yaml b/deployment/eks/flyte_aws_scheduler_helm_generated.yaml index 0ce940cfa90..f0d1a1182f3 100644 --- a/deployment/eks/flyte_aws_scheduler_helm_generated.yaml +++ b/deployment/eks/flyte_aws_scheduler_helm_generated.yaml @@ -78,13 +78,22 @@ stringData: type: Opaque --- # Source: flyte-core/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmRENDQW1TZ0F3SUJBZ0lSQUs0UzBrTEY2UTNHNjZWTGNwbEExV1F3RFFZSktvWklodmNOQVFFTEJRQXcKRXpFUk1BOEdBMVVFQXhNSVpteDVkR1V0WTJFd0lCY05NalF3TnpFeU1EUXlNakV3V2hnUE1qRXlNekEyTVRrdwpOREl5TVRCYU1DWXhKREFpQmdOVkJBTVRHMlpzZVhSbExYQnZaQzEzWldKb2IyOXJMbVpzZVhSbExuTjJZekNDCkFTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBSm5yQ25VSHU5cHpxMm5LMkt0T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wKMWZMc1lNa3BhQ0FXVGxtV2ZKWEUzODdnNnhxd2hvVklhenM3MTBjYkh2bm1hb3hteHlIejNodUJ4bENvbXlNaQoxOU9FYnRhaitkQ2Z4TkRTdjcvbTk3czdxZndBd2RqSjFyVUNlUUlEQVFBQm8yRXdYekFPQmdOVkhROEJBZjhFCkJBTUNBcVF3SFFZRFZSMGxCQll3RkFZSUt3WUJCUVVIQXdFR0NDc0dBUVVGQndNQ01BOEdBMVVkRXdFQi93UUYKTUFNQkFmOHdIUVlEVlIwT0JCWUVGRVZiekxxYUkxcTMzQmR3Q3BBSFNOUisxbTZhTUEwR0NTcUdTSWIzRFFFQgpDd1VBQTRJQkFRQ05qK3F2ZWZiQjczdXBBdGh5TTZ1Mm5NcVpVZmk3Zk9PRFBVVFRaZEFkeThHZ2JqUGdvNFllCnpxK1VTWW9UK0Y5VEdkOW1wSkpBOSsxckxYSE5jdzdpSG5MSFI1WTkxTjVFR2pFNXhvTVVjWFB3WGJPeUY1RVYKODFVSlI4R0R5Nk1QRm9DV3hrQVJMdnFwa00raWVWMWU0djJjR1lEdDZwN2tUU2R4NStpZFFMZ01TU1pWU0xhLwphaXVrcXVEb01iaDdGcFluK0RXd1UxaEVtYWNuZEFtdU9LZ0RCeHhHS3luemI0TVZlVWRUR0VNNU8vaUJTVFhPCmhnZDM0ZTBabjhkZVlSelB1QzZSU1l6anBBWlNGNlQvWFR3ZjlCaU9rQVVmQVdYSTdQczJUZlo3NUpScG5xc3IKL2lJZTBOVDkrT3BzNjloNXd0aDVmbGE3YTJOYmZUM0UKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= --- # Source: flyte-core/templates/admin/configmap.yaml apiVersion: v1 @@ -1373,33 +1382,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" diff --git a/deployment/eks/flyte_helm_dataplane_generated.yaml b/deployment/eks/flyte_helm_dataplane_generated.yaml index 040cb007f75..595764f2f5e 100644 --- a/deployment/eks/flyte_helm_dataplane_generated.yaml +++ b/deployment/eks/flyte_helm_dataplane_generated.yaml @@ -55,13 +55,22 @@ stringData: type: Opaque --- # Source: flyte-core/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlekNDQW1PZ0F3SUJBZ0lRSHk4UHRBdVhQS01tL21XUVhKS1R5VEFOQmdrcWhraUc5dzBCQVFzRkFEQVQKTVJFd0R3WURWUVFERXdobWJIbDBaUzFqWVRBZ0Z3MHlOREEzTVRJd05ESXlNRFphR0E4eU1USXpNRFl4T1RBMApNakl3Tmxvd0pqRWtNQ0lHQTFVRUF4TWJabXg1ZEdVdGNHOWtMWGRsWW1odmIyc3VabXg1ZEdVdWMzWmpNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUE0eks5NU54UUVHTTd1NHd0d0cwWGIwQUYKL0VBWFFHZ29aVVFTRlZOYnk4L3hlQmRUVWFNSU1jemdIa3ovQmsrdFNCcGx6TlpCOElCZHUzRm9LeCtuZmxscgpSbWRiUVNiTWVlZDJnTkQ0YUE5UXhMQjRSS0FDcHFlcjY2cDk4T3l1ZVVsR0JjQjZPREJ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QmZNQTRHQTFVZER3RUIvd1FFCkF3SUNwREFkQmdOVkhTVUVGakFVQmdnckJnRUZCUWNEQVFZSUt3WUJCUVVIQXdJd0R3WURWUjBUQVFIL0JBVXcKQXdFQi96QWRCZ05WSFE0RUZnUVVFNjQ4U04xVW5EekRSZ0htQmp1Y29xRTVSRmd3RFFZSktvWklodmNOQVFFTApCUUFEZ2dFQkFGWWRKMmxwNFk1TEJhRzhuUmxDR0xJb3EvRnkvUEs0M2wvMnJtNVp1cDgwUWtadXR5RHpuU3NCCitubEtzcVJWelg3ZkVLcFV4NFNsN0dmRVAzNi9xV3JzdjRoeVhlTDFZaTY2OG10dmhRc2hPblhWUDIrQWZwQ3IKNUpuTTV6blN4c1JRWk81a1N0dE9nRDNwZjlEQm0vKy9hZDhxalIvM2pDR2NaS3Z0TEtFYWpXZ1o0SHZoVGRnZQpWMEx6UGVOcHArQk1MVURCbDNLdXE1d1Z2ZWxKME1sNjJJbmM1NjNPb2UybFNhUldHRitxdVUyYUU1RjFXdEFyCk03TGFUcDF6NjdveXhhTHZoN0hnQld5Y3N3VnU0VEh1aVk4b01RSit2d29WY2ZBWTdyZVVIeDdaaFRlOUxqS28KbHZxTFZGUENGTGpjb2lDb25tNDE5RDBVUExjaDkrMD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= --- # Source: flyte-core/templates/propeller/configmap.yaml apiVersion: v1 @@ -524,33 +533,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" diff --git a/deployment/eks/flyte_helm_generated.yaml b/deployment/eks/flyte_helm_generated.yaml index 5fc562963e6..24a1ae92a14 100644 --- a/deployment/eks/flyte_helm_generated.yaml +++ b/deployment/eks/flyte_helm_generated.yaml @@ -90,13 +90,22 @@ stringData: type: Opaque --- # Source: flyte-core/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlekNDQW1PZ0F3SUJBZ0lRT2tZMUxxTWN5REdkUUV1c28wbWkxVEFOQmdrcWhraUc5dzBCQVFzRkFEQVQKTVJFd0R3WURWUVFERXdobWJIbDBaUzFqWVRBZ0Z3MHlOREEzTVRJd05ESXlNRFJhR0E4eU1USXpNRFl4T1RBMApNakl3TkZvd0pqRWtNQ0lHQTFVRUF4TWJabXg1ZEdVdGNHOWtMWGRsWW1odmIyc3VabXg1ZEdVdWMzWmpNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFwcU8yWUpzMU81T3hDMkdXaFNlS1RkTzQKTXkrMElLZUMwaE8xa0NRaXRlcFZEMEpSSDRXMmlNQURTQzdzckxpeXFJS3IxY2w1T3pkbE41N2dkM2ZKdllLRAppQUVzeFh1TG9Wd2N0aHBkbE1VQVdzbk1jaWFEZldicENDWnBkZWNKK0NsK2gxajdHYkhGSjYxQk16akl3Y0VXCmMzaGo0TVFIZkttNTRYTFBaeVljRzQ5MXBqOS9Wc3RiMUJaRmZycnNqNXRVZm5VTzRHdmhhaklKa3JIYXJ2Y0kKSUc5REF1UjFHT2pxNDlmcWFHazZmbnhoNytzOEFVb2o2K1FFTnk2c2NQc0RQUElpSERsb3VoNTZtd3l2S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HlpOWpNTjZVcCtva3JVUS9yci9hSWIwbitjZHpyaFJWM0dSbVdoeHI4bGhzUE5MMm5ucXowClFlSisyUWg3SHZ3WWZWRGtrd2ZaV2hLdzJlQzlTYnc2bTgzUk1SeHdOQ2FrY1B6cG9PSjkzNExnR0xCWDQ5Y2QKWVFBWjJrR0c4UU1UZ2M0NmtISnk1bWxCcDNTQmozMFBzazNWZGhjSzN4OWljdG41cldpRUtEa3lucTZIYjNYVAo1VjE3WG4xcHNwVmdkbG9FblNGTTJXN0lTRnB6WThwaGV6ZndBNEYxQUU4UVk1bDdFYVkzMmdkSXJ2OFp0OGttCjNkWGNKc0taUGtRQS9RTENKeW9aSVBYMWtjMHVNUElMOUdicEJQTVBWdkR1TVRrdk1nVVJNL2toOUFjS095dy8Kb0VYRzdXSlRTMEZlSWZaanJ4L3k4dFc1c1cxRGYrST0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= --- # Source: flyte-core/templates/admin/configmap.yaml apiVersion: v1 @@ -1503,33 +1512,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" diff --git a/deployment/gcp/flyte_helm_dataplane_generated.yaml b/deployment/gcp/flyte_helm_dataplane_generated.yaml index b5ad82d3f0e..05fbd88fcc8 100644 --- a/deployment/gcp/flyte_helm_dataplane_generated.yaml +++ b/deployment/gcp/flyte_helm_dataplane_generated.yaml @@ -55,13 +55,22 @@ stringData: type: Opaque --- # Source: flyte-core/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmRENDQW1TZ0F3SUJBZ0lSQUtuY25jTFVod2wyVXQ3Z2YveklaK293RFFZSktvWklodmNOQVFFTEJRQXcKRXpFUk1BOEdBMVVFQXhNSVpteDVkR1V0WTJFd0lCY05NalF3TnpFeU1EUXlNakE1V2hnUE1qRXlNekEyTVRrdwpOREl5TURsYU1DWXhKREFpQmdOVkJBTVRHMlpzZVhSbExYQnZaQzEzWldKb2IyOXJMbVpzZVhSbExuTjJZekNDCkFTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTHNCbTIwdENhdW5Sek1malR3b0EzVTAKYkFjM3R6SjNNT0NjRWViZ21HOFBDQzZyUlZDV0wvNjRuRVRkdUpQQXdsVnI2L1NtUU5qOFY2QnpZRTJXMm5scwpFSGxCRWlNMDhpZEJPdllkc093NUhtSlZYOUpKeEMrRVljTmUwK2tLalU0QUxNd2ZjMG1OdDkzME1wZTQ5alpzCkZwa2hCTjFDY09TdFBxNjFJaUZpa25FdlIwS1BUSkM4aGZPWHVSWWg5Zkg1UU1IM0Q1RGZJcmZ3VUQwQkJtTC8KcjRSNVhnTWdLNVF2Y2pONHY4RXVseUM2d2prRWlVbmxkdG9UOUxOc2UxcWZXK2ZiTGZ5OVFyNnFrSWRtWHBIeQpRVjVxZmtLWURRTHhaOGtGNE9TSHpMYkVRMjZkTGd1U1pidEkyNjQ4ZE9DcnBURjFLdEoyYnZyWGQ5Y3BDR1VDCkF3RUFBYU9CdFRDQnNqQU9CZ05WSFE4QkFmOEVCQU1DQmFBd0hRWURWUjBsQkJZd0ZBWUlLd1lCQlFVSEF3RUcKQ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kZhYmJCUU1xTTI3Q2g5Z3ZqbjRqUHAKT3VqS0l4SlhlL0puUXljNUxYdm5VNXhadjMybENmZDM5V29CYUplMUIvanV0U1o4dzViMEtEV1dVZndUcllISgo2c2FZbXBkRG41bmRIWDJlVEtLQzRVUVJIUFVuQUYxb1lHaFNVa3hwdEtHcHF3SHZEaldLZmdtRlRqTzQrTmVoCkt2aElJQVd0QVJQZldqL3pxalpxWFZIMGNIelh0UDdqSERORHp4NmtySEZ3cXZvemJkVTZBNVhIRjFQbGNyUGEKNXZFU1ZzRU9JalpJa0hTZk51QlRJUnBCdHdpY2FpZFoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= --- # Source: flyte-core/templates/propeller/configmap.yaml apiVersion: v1 @@ -531,33 +540,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" diff --git a/deployment/gcp/flyte_helm_generated.yaml b/deployment/gcp/flyte_helm_generated.yaml index 4e3fe06e38e..2edd1f7e76f 100644 --- a/deployment/gcp/flyte_helm_generated.yaml +++ b/deployment/gcp/flyte_helm_generated.yaml @@ -90,13 +90,22 @@ stringData: type: Opaque --- # Source: flyte-core/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0t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G54CnIrakhaK0M1YWQ0QUJONHV1cXBPODQzK1VIdlNWbGh3MEZqbWFOY0hsTHJSYVc3eW9sRWVnRDZUdCtlU0dEalUKenFjTDNEZTh6a0tORGNKbC9DZ2tMOWpKMEhJM29Jcz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= --- # Source: flyte-core/templates/admin/configmap.yaml apiVersion: v1 @@ -1525,33 +1534,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" diff --git a/deployment/sandbox/flyte_helm_generated.yaml b/deployment/sandbox/flyte_helm_generated.yaml index f53025f8506..8889a9157e1 100644 --- a/deployment/sandbox/flyte_helm_generated.yaml +++ b/deployment/sandbox/flyte_helm_generated.yaml @@ -129,13 +129,22 @@ stringData: client_secret: foobar --- # Source: flyte/charts/flyte/templates/propeller/webhook.yaml -# Create an empty secret that the first propeller pod will populate apiVersion: v1 kind: Secret metadata: name: flyte-pod-webhook namespace: flyte -type: Opaque +type: kubernetes.io/tls +data: + # ca issued cert + tls.crt: | + LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlekNDQW1PZ0F3SUJBZ0lRQWpFSTgyVXZNL2NqQjN3YUttbnlWVEFOQmdrcWhraUc5dzBCQVFzRkFEQVQKTVJFd0R3WURWUVFERXdobWJIbDBaUzFqWVRBZ0Z3MHlOREEzTVRJd05ESXlNREphR0E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ubernetes-dashboard/templates/secret.yaml # Copyright 2017 The Kubernetes Authors. @@ -7269,33 +7278,6 @@ spec: seLinuxOptions: type: spc_t serviceAccountName: flyte-pod-webhook - initContainers: - - name: generate-secrets - image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0" - imagePullPolicy: "IfNotPresent" - command: - - flytepropeller - args: - - webhook - - init-certs - - --config - - /etc/flyte/config/*.yaml - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - volumeMounts: - - name: config-volume - mountPath: /etc/flyte/config containers: - name: webhook image: "cr.flyte.org/flyteorg/flytepropeller:v1.13.0"