Skip to content

Commit

Permalink
Flyte-core add missing imagePullSecrets support (#4810)
Browse files Browse the repository at this point in the history
- The console doesn't have / need a ServiceAccount, but it still needs
   credentials to be able to pull image from security registries

   Add a new imagePullSecrets value for that

 - The webhook ServiceAccount didn't have the correct imagePullSecrets
   set, so similarly could not pull images from security registries.
   Use the propeller settings

Signed-off-by: ddl-ebrown <[email protected]>
  • Loading branch information
ddl-ebrown authored Feb 5, 2024
1 parent df1b034 commit 2a120f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/flyte-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ helm install gateway bitnami/contour -n flyte
| flyteconsole.image.pullPolicy | string | `"IfNotPresent"` | |
| flyteconsole.image.repository | string | `"cr.flyte.org/flyteorg/flyteconsole"` | Docker image for Flyteconsole deployment |
| flyteconsole.image.tag | string | `"v1.10.2"` | |
| flyteconsole.imagePullSecrets | list | `[]` | ImagePullSecrets to assign to the Flyteconsole deployment |
| flyteconsole.nodeSelector | object | `{}` | nodeSelector for Flyteconsole deployment |
| flyteconsole.podAnnotations | object | `{}` | Annotations for Flyteconsole pods |
| flyteconsole.podEnv | object | `{}` | Additional Flyteconsole container environment variables |
Expand Down
4 changes: 4 additions & 0 deletions charts/flyte-core/templates/console/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
{{- end }}
labels: {{ include "flyteconsole.podLabels" . | nindent 8 }}
spec:
{{- with .Values.flyteconsole.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
runAsUser: 1000
fsGroupChangePolicy: "OnRootMismatch"
Expand Down
3 changes: 3 additions & 0 deletions charts/flyte-core/templates/propeller/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ metadata:
annotations: {{ tpl (toYaml .) $ | nindent 4 }}
{{- end}}
{{- end }}
{{- with .Values.webhook.serviceAccount.imagePullSecrets }}
imagePullSecrets: {{ tpl (toYaml .) $ | nindent 2 }}
{{- end }}
---
# Create a binding from Role -> ServiceAccount
kind: ClusterRoleBinding
Expand Down
2 changes: 2 additions & 0 deletions charts/flyte-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ flyteconsole:
tracking_id: "G-0QW4DJWJ20"
# -- Sets priorityClassName for flyte console pod(s).
priorityClassName: ""
# -- ImagePullSecrets to assign to the Flyteconsole deployment
imagePullSecrets: []

# It will enable the redoc route in ingress
deployRedoc: false
Expand Down

0 comments on commit 2a120f4

Please sign in to comment.