Skip to content

Commit

Permalink
Replace init-certs webhook initContainer 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

 - Update CI check to only fail when lines are deleted or removed from
   the generated Helm output, not when values are modified

Signed-off-by: ddl-ebrown <[email protected]>
  • Loading branch information
ddl-ebrown committed Jul 12, 2024
1 parent 81afb76 commit 7070739
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 204 deletions.
66 changes: 31 additions & 35 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
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
38 changes: 10 additions & 28 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
data:
# ca issued cert
tls.crt: |
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmRENDQW1TZ0F3SUJBZ0lSQUk0NFVqbWVtMTQ5SHJTaCtXT2d3Y1F3RFFZSktvWklodmNOQVFFTEJRQXcKRXpFUk1BOEdBMVVFQXhNSVpteDVkR1V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Ka1lTWDMwbGZIV1krMTVIT0F1Y2pUUUpCc1BhYk1KQT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
---
# 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
38 changes: 10 additions & 28 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
data:
# ca issued cert
tls.crt: |
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlekNDQW1PZ0F3SUJBZ0lRUmVFbjF3TmM3TWY2YXpOVlo2RFIwREFOQmdrcWhraUc5dzBCQVFzRkFEQVQKTVJFd0R3WURWUVFERXdobWJIbDBaUzFqWVRBZ0Z3MHlOREEzTVRJeE56UXpNalphR0E4eU1USXpNRFl4T1RFMwpORE15Tmxvd0pqRWtNQ0lHQTFVRUF4TWJabXg1ZEdVdGNHOWtMWGRsWW1odmIyc3VabXg1ZEdVdWMzWmpNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFP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akxBRUo4NFdmN2JJUjNNLy9TWFZLZGRsQVFPTEZXSnJQSUlKZlJ6WHB3QTlkWEdnOEEKbkdnNkhmc1o4RkhnMWw4RjQrK1l5WU00U3MzN2FWUGJGTlJPMmhtYkRaNVR6TFVkMlFkZkhLRFdVRFRHNElUSwpUT1hUMXVZdC9SOURZSGIyQ3JqK3M0V0VTU0l5Zmp6TGp6RFpBZ01CQUFHallUQmZNQTRHQTFVZER3RUIvd1FFCkF3SUNwREFkQmdOVkhTVUVGakFVQmdnckJnRUZCUWNEQVFZSUt3WUJCUVVIQXdJd0R3WURWUjBUQVFIL0JBVXcKQXdFQi96QWRCZ05WSFE0RUZnUVVuMjY2TmdaZlM4TG04cTFKUkhwWUNPOUU2VHd3RFFZSktvWklodmNOQVFFTApCUUFEZ2dFQkFDcFNSSVhmTGFDbk9QS3gwWWZZdWFHSE5GRDFqWk1UOTl5eXJpUTdneUJaK2dJeTQzYm5OUkFpClN1Ry9SSTJPczZOemVzN05SWWFTMnkxb053b0xIalhFWHgrTUhqb0V4SDZvMjA2Umw3WWF6T1p2OEtPc011WHIKeWt1bWYrdmhrUEtVcVpRT1o5UElXSjVDSzQwOGp4V2JndEIxSU9WSFA0L2JUV041M1I2d3d2NEljVXJ2NW1KNgpscHppWHJ2Nnp5MTFCdkcvY1lvS3JiK3MwZHFsM2hCdmt0SEdZOTQyeTZLWkcvQWpQUzFQNkQwMDBpb1RPaGhICnRWKy9rL1Qxc3NDNGpPZXpyTHdHQjRoWWlhNlk3dkYvR2R2Sk5xMHBHeDZwVC9oYnp5MzVianQxbGlQa1d5cmkKMERSWE9pcnU3ekNRVXB6clVEMkh5VG5qeC9TS3gvRT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
---
# 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 7070739

Please sign in to comment.