Skip to content

Commit

Permalink
Replace init-certs webhook job with Helm template
Browse files Browse the repository at this point in the history
 - Replicates the functionality from the webhook init-certs cli command
   from Flyte:

   https://github.com/flyteorg/flyte/blob/master/flytepropeller/pkg/webhook/init_cert.go

   This produces a ca.crt, tls.crt and tls.key value needed for the
   webhook, rather than needing to create a container that needs to have
   network and Kubernetes access.

 - Uses the Helm lookup helper to prevent regenerating on upgrades

Signed-off-by: ddl-ebrown <[email protected]>
  • Loading branch information
ddl-ebrown committed Jul 12, 2024
1 parent 81afb76 commit ba968ac
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 210 deletions.
68 changes: 32 additions & 36 deletions charts/flyte-core/templates/propeller/webhook.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down
40 changes: 11 additions & 29 deletions deployment/eks/flyte_aws_scheduler_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmRENDQW1TZ0F3SUJBZ0lSQUs0UzBrTEY2UTNHNjZWTGNwbEExV1F3RFFZSktvWklodmNOQVFFTEJRQXcKRXpFUk1BOEdBMVVFQXhNSVpteDVkR1V0WTJFd0lCY05N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SUNBVEUtLS0tLQo=
---
# Source: flyte-core/templates/admin/configmap.yaml
apiVersion: v1
Expand Down Expand Up @@ -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"
Expand Down
40 changes: 11 additions & 29 deletions deployment/eks/flyte_helm_dataplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlekNDQW1PZ0F3SUJBZ0lRSHk4UHRBdVhQS01tL21XUVhKS1R5VEFOQmdrcWhraUc5dzBCQVFzRkFEQVQKTVJFd0R3WURWUVFERXdobWJIbDBaUzFqWVRBZ0Z3MHlOREEzTVRJd05ESXlNRFphR0E4eU1USXpNRFl4T1RBMApNakl3Tmxvd0pqRWtNQ0lHQTFVRUF4TWJabXg1ZEdVdGNHOWtMWGRsWW1odmIyc3VabXg1ZEdVdWMzWmpNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUE0eks5NU54UUVHTTd1NHd0d0cwWGIw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TJKU0RzRjVhWlYKVTJwa21oSzZ4c1FNS29jMUlSdFB5akpaaTdreHFMWndpYXU4bVFMTmhYcUhYYjJoNWhkZndvN0dlZGU2bjBrdgovRm5CNFp5bHp1dDhDWDdhZ2EwT3AxSFhmMHdNY3Z4UFZtUTVBZ01CQUFHallUQmZNQTRHQTFVZER3RUIvd1FFCkF3SUNwREFkQmdOVkhTVUVGakFVQmdnckJnRUZCUWNEQVFZSUt3WUJCUVVIQXdJd0R3WURWUjBUQVFIL0JBVXcKQXdFQi96QWRCZ05WSFE0RUZnUVVFNjQ4U04xVW5EekRSZ0htQmp1Y29xRTVSRmd3RFFZSktvWklodmNOQVFFTApCUUFEZ2dFQkFGWWRKMmxwNFk1TEJhRzhuUmxDR0xJb3EvRnkvUEs0M2wvMnJtNVp1cDgwUWtadXR5RHpuU3NCCitubEtzcVJWelg3ZkVLcFV4NFNsN0dmRVAzNi9xV3JzdjRoeVhlTDFZaTY2OG10dmhRc2hPblhWUDIrQWZwQ3IKNUpuTTV6blN4c1JRWk81a1N0dE9nRDNwZjlEQm0vKy9hZDhxalIvM2pDR2NaS3Z0TEtFYWpXZ1o0SHZoVGRnZQpWMEx6UGVOcHArQk1MVURCbDNLdXE1d1Z2ZWxKME1sNjJJbmM1NjNPb2UybFNhUldHRitxdVUyYUU1RjFXdEFyCk03TGFUcDF6NjdveXhhTHZoN0hnQld5Y3N3VnU0VEh1aVk4b01RSit2d29WY2ZBWTdyZVVIeDdaaFRlOUxqS28KbHZxTFZGUENGTGpjb2lDb25tNDE5RDBVUExjaDkrMD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
---
# Source: flyte-core/templates/propeller/configmap.yaml
apiVersion: v1
Expand Down Expand Up @@ -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"
Expand Down
Loading

0 comments on commit ba968ac

Please sign in to comment.