feat(custom-app): Add custom command UI (#2983)
* feat(custom-app): Add custom command UI * give custom command it's own checkbox Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
co-authored by
Kjeld Schouten-Lebbing
parent
4e708732a9
commit
e4e6f86d2c
@@ -31,6 +31,11 @@ include_questions(){
|
|||||||
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
|
# Replace # Include{controllerExpertCommand} with the standard controllerExpertCommand codesnippet
|
||||||
|
awk 'NR==FNR { a[n++]=$0; next }
|
||||||
|
/# Include{controllerExpertCommand}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
|
1' templates/questions/controllerExpertCommand.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
||||||
awk 'NR==FNR { a[n++]=$0; next }
|
awk 'NR==FNR { a[n++]=$0; next }
|
||||||
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ name: custom-app
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
|
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
|
||||||
type: application
|
type: application
|
||||||
version: 5.0.16
|
version: 5.1.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- custom
|
- custom
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ questions:
|
|||||||
description: "RollingUpdate: Create new pods and then kill old ones"
|
description: "RollingUpdate: Create new pods and then kill old ones"
|
||||||
- value: "OnDelete"
|
- value: "OnDelete"
|
||||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||||
|
# Include{controllerExpertCommand}
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
|
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
- variable: customcommand
|
||||||
|
label: "Show Custom Command Options"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: command
|
||||||
|
label: "Command"
|
||||||
|
schema:
|
||||||
|
type: list
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
- variable: param
|
||||||
|
label: "param"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
@@ -130,6 +130,11 @@ include_questions(){
|
|||||||
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
|
# Replace # Include{controllerExpertCommand} with the standard controllerExpertCommand codesnippet
|
||||||
|
awk 'NR==FNR { a[n++]=$0; next }
|
||||||
|
/# Include{controllerExpertCommand}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
|
1' templates/questions/controllerExpertCommand.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
||||||
awk 'NR==FNR { a[n++]=$0; next }
|
awk 'NR==FNR { a[n++]=$0; next }
|
||||||
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
|
|||||||
Reference in New Issue
Block a user