You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/14 00:46:39 UTC
[GitHub] [airflow] jedcunningham commented on a change in pull request #20864: Add support for custom command and args in jobs
jedcunningham commented on a change in pull request #20864:
URL: https://github.com/apache/airflow/pull/20864#discussion_r784430429
##########
File path: chart/values.schema.json
##########
@@ -1979,6 +1979,45 @@
"x-docsSection": "Jobs",
"additionalProperties": false,
"properties": {
+ "command": {
+ "description": "Command to use when running create user job (templated).",
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "default": null
+ },
+ "args": {
+ "description": "Args to use when running create user job (templated).",
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "default": [
+ "bash",
+ "-c",
+ "exec \\\nairflow {{ semverCompare \">=2.0.0\" .Values.airflowVersion | ternary \"users create\" \"create_user\" }} \"$@\"",
+ "--",
+ "-r",
+ "{{ .Values.webserver.defaultUser.role }}",
+ "-u",
+ "{{ .Values.webserver.defaultUser.username }}",
+ "-e",
+ "{{ .Values.webserver.defaultUser.email }}",
+ "-f",
+ "{{ .Values.webserver.defaultUser.firstName }}",
+ "-l",
+ "{{ .Values.webserver.defaultUser.lastName }}",
+ "-p",
+ "{{ .Values.webserver.defaultUser.password }}"
+ ]
Review comment:
```suggestion
"default": "See values.yaml",
```
I almost did this, as this is a lot on the params page. Thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org