Skip to content

Commit

Permalink
add extraArgs to charts
Browse files Browse the repository at this point in the history
  • Loading branch information
marcm-ml committed Dec 3, 2023
1 parent e56f722 commit dbe12dd
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions charts/prefect-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Prefect Agent application bundle
| agent.containerSecurityContext.readOnlyRootFilesystem | bool | `true` | set agent containers' security context readOnlyRootFilesystem |
| agent.containerSecurityContext.runAsNonRoot | bool | `true` | set agent containers' security context runAsNonRoot |
| agent.containerSecurityContext.runAsUser | int | `1001` | set agent containers' security context runAsUser |
| agent.extraArgs | list | `[]` | array with extra Arguments for the agent container to start with |
| agent.extraContainers | list | `[]` | additional sidecar containers |
| agent.extraEnvVars | list | `[]` | array with extra environment variables to add to agent nodes |
| agent.extraEnvVarsCM | string | `""` | name of existing ConfigMap containing extra env vars to add to agent nodes |
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- --limit
- {{ .Values.agent.config.limit | quote }}
{{- end }}
{{- range .Values.agent.extraArgs }}
- {{ . | toString }}
{{- end }}
workingDir: /home/prefect
env:
- name: HOME
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ agent:
# -- array with extra volumeMounts for the agent pod
extraVolumeMounts: []

# -- array with extra Arguments for the agent container to start with
extraArgs: []

## ServiceAccount configuration
serviceAccount:
# -- specifies whether a ServiceAccount should be created
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ If you are installing the chart as-is (and therefore installing PostgreSQL) - yo

2. `password`: the same password defined in the `connection-string` above


Two secrets are created when not providing an existing secret name:
1. `prefect-server-postgresql-connection`: used by the prefect-server deployment to connect to the postgresql database.

Expand Down Expand Up @@ -145,6 +146,7 @@ No secrets are created when providing an existing secret.
| server.containerSecurityContext.runAsUser | int | `1001` | set server containers' security context runAsUser |
| server.debug | bool | `false` | enable server debug mode |
| server.env | list | `[]` | array with environment variables to add to server nodes |
| server.extraArgs | list | `[]` | array with extra Arguments for the server container to start with |
| server.extraContainers | list | `[]` | additional sidecar containers |
| server.extraEnvVarsCM | string | `""` | name of existing ConfigMap containing extra env vars to add to server nodes |
| server.extraEnvVarsSecret | string | `""` | name of existing Secret containing extra env vars to add to server nodes |
Expand Down Expand Up @@ -194,5 +196,6 @@ No secrets are created when providing an existing secret.
| serviceAccount.create | bool | `true` | specifies whether a ServiceAccount should be created |
| serviceAccount.name | string | `""` | the name of the ServiceAccount to use. if not set and create is true, a name is generated using the common.names.fullname template |


----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
3 changes: 3 additions & 0 deletions charts/prefect-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ spec:
- start
- --port
- {{ .Values.service.targetPort | quote }}
{{- range .Values.server.extraArgs }}
- {{ . | toString }}
{{- end }}
workingDir: /home/prefect
ports:
- containerPort: {{ int .Values.service.targetPort }}
Expand Down
6 changes: 6 additions & 0 deletions charts/prefect-server/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@
"items": {
"type": "object"
}
},
"extraArgs": {
"type": "array",
"title": "Extra Container Args",
"description": "array with extra args for the server container",
"form": true
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ server:
# -- array with extra volumeMounts for the server pod
extraVolumeMounts: []

# -- array with extra Arguments for the server container to start with
extraArgs: []

## ServiceAccount configuration
serviceAccount:
# -- specifies whether a ServiceAccount should be created
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-worker/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# prefect-worker


## Overview

[Workers](https://docs.prefect.io/latest/concepts/work-pools/#worker-overview) are lightweight polling services that retrieve scheduled runs from a work pool and execute them.
Expand Down Expand Up @@ -260,6 +261,7 @@ helm install prefect-worker prefect/prefect-worker -f values.yaml --set-file wor
| worker.containerSecurityContext.readOnlyRootFilesystem | bool | `true` | set worker containers' security context readOnlyRootFilesystem |
| worker.containerSecurityContext.runAsNonRoot | bool | `true` | set worker containers' security context runAsNonRoot |
| worker.containerSecurityContext.runAsUser | int | `1001` | set worker containers' security context runAsUser |
| worker.extraArgs | list | `[]` | array with extra Arguments for the worker container to start with |
| worker.extraContainers | list | `[]` | additional sidecar containers |
| worker.extraEnvVars | list | `[]` | array with extra environment variables to add to worker nodes |
| worker.extraEnvVarsCM | string | `""` | name of existing ConfigMap containing extra env vars to add to worker nodes |
Expand Down Expand Up @@ -297,5 +299,6 @@ helm install prefect-worker prefect/prefect-worker -f values.yaml --set-file wor
| worker.serverApiConfig.uiUrl | string | `"http://localhost:4200"` | prefect UI url |
| worker.tolerations | list | `[]` | tolerations for worker pods assignment |


----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
3 changes: 3 additions & 0 deletions charts/prefect-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ spec:
- --base-job-template
- baseJobTemplate.json
{{- end }}
{{- range .Values.worker.extraArgs }}
- {{ . | toString }}
{{- end }}
workingDir: /home/prefect
env:
- name: HOME
Expand Down
14 changes: 10 additions & 4 deletions charts/prefect-worker/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,13 @@
"extraEnvVarsCM": {
"type": "string",
"title": "Extra Env Vars ConfigMap",
"description": "name of existing ConfigMap containing extra env vars to add to server nodes",
"description": "name of existing ConfigMap containing extra env vars to add to worker nodes",
"form": true
},
"extraEnvVarsSecret": {
"type": "string",
"title": "Extra Env Vars Secret",
"description": "name of existing Secret containing extra env vars to add to server nodes",
"description": "name of existing Secret containing extra env vars to add to worker nodes",
"form": true
},
"extraContainers": {
Expand All @@ -527,7 +527,7 @@
"extraVolumes": {
"type": "array",
"title": "Extra Volumes",
"description": "array with extra volumes for the server pod",
"description": "array with extra volumes for the worker pod",
"form": true,
"items": {
"type": "object"
Expand All @@ -536,11 +536,17 @@
"extraVolumeMounts": {
"type": "array",
"title": "Extra Volume Mounts",
"description": "array with extra volumeMounts for the server pod",
"description": "array with extra volumeMounts for the worker pod",
"form": true,
"items": {
"type": "object"
}
},
"extraArgs": {
"type": "array",
"title": "Extra Container Args",
"description": "array with extra args for the worker container",
"form": true
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions charts/prefect-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ worker:
# -- array with extra volumeMounts for the worker pod
extraVolumeMounts: []

# -- array with extra Arguments for the worker container to start with
extraArgs: []

## ServiceAccount configuration
serviceAccount:
# -- specifies whether a ServiceAccount should be created
Expand Down

0 comments on commit dbe12dd

Please sign in to comment.