Update questions.yml format

This commit is contained in:
Waqar Ahmed
2020-10-13 04:31:55 +05:00
parent 10424343cb
commit 5c6aba4a4a
+51 -30
View File
@@ -1,7 +1,29 @@
# Workload type groups:
- variable: workloadType - name: "Container Images"
description: "Image to be used for container"
- name: "Container Entrypoint"
description: "Configuration of the executable that will be run when the container is started"
- name: "Container Environment Variables"
description: "Set the environment that will be visible to the container"
- name: "Networking"
description: "Configure networking for container"
- name: "Storage"
description: "Persist and share data that is separate from the lifecycle of the container"
- name: "Health Check"
description: "Define mechanism to periodically probe the container to ensure it's functioning as desired"
- name: "Workload Details"
description: "Configure how workload should be deployed"
- name: "Scaling/Upgrade Policy"
description: "Configure how pods are replaced when configuration is upgraded"
- name: "Restart Policy"
description: "Configure when pod should be restarted in case of failure"
questions:
# Workload type
- variable: workloadType
description: "Please specify type of workload to deploy" description: "Please specify type of workload to deploy"
label: "Workload Type" label: "Workload Type"
group: "Workload Details"
schema: schema:
type: string type: string
default: "Deployment" default: "Deployment"
@@ -11,17 +33,18 @@
- "Job" - "Job"
- "CronJob" - "CronJob"
# Cronjob schedule # Cronjob schedule
- variable: cronSchedule - variable: cronSchedule
label: "Cron Schedule" label: "Cron Schedule"
group: "Workload Details"
schema: schema:
type: cron type: cron
show_if: [["workloadType", "=", "CronJob"]] show_if: [["workloadType", "=", "CronJob"]]
default: default:
minute: "5" minute: "5"
# Image related # Image related
- variable: image - variable: image
description: "Docker Image Details" description: "Docker Image Details"
group: "Container Images" group: "Container Images"
schema: schema:
@@ -31,21 +54,18 @@
- variable: repository - variable: repository
description: "Docker image repository" description: "Docker image repository"
label: "Image repository" label: "Image repository"
group: "Container Images"
schema: schema:
type: string type: string
required: true required: true
- variable: tag - variable: tag
description: "Tag to use for specified image" description: "Tag to use for specified image"
label: "Image Tag" label: "Image Tag"
group: "Container Images"
schema: schema:
type: string type: string
default: "latest" default: "latest"
- variable: pullPolicy - variable: pullPolicy
description: "Docker Image Pull Policy" description: "Docker Image Pull Policy"
label: "Image Pull Policy" label: "Image Pull Policy"
group: "Container Images"
schema: schema:
type: string type: string
default: "IfNotPresent" default: "IfNotPresent"
@@ -54,10 +74,11 @@
- "Always" - "Always"
- "Never" - "Never"
# Update strategy # Update strategy
- variable: updateStrategy - variable: updateStrategy
description: "Upgrade Policy" description: "Upgrade Policy"
label: "Update Strategy" label: "Update Strategy"
group: "Scaling/Upgrade Policy"
schema: schema:
type: string type: string
show_if: [["workloadType", "=", "Deployment"]] show_if: [["workloadType", "=", "Deployment"]]
@@ -66,8 +87,8 @@
- "RollingUpdate" - "RollingUpdate"
- "Recreate" - "Recreate"
# Restart Policy # Restart Policy
- variable: restartPolicy - variable: restartPolicy
description: "Restart Policy for workload" description: "Restart Policy for workload"
label: "Restart Policy" label: "Restart Policy"
schema: schema:
@@ -78,7 +99,7 @@
- "Always" - "Always"
- "OnFailure" - "OnFailure"
- "Never" - "Never"
- variable: jobRestartPolicy - variable: jobRestartPolicy
description: "Restart Policy for workload" description: "Restart Policy for workload"
label: "Restart Policy" label: "Restart Policy"
schema: schema:
@@ -89,8 +110,8 @@
- "OnFailure" - "OnFailure"
- "Never" - "Never"
# Configurable CMD / Entrypoint / Environment Variables # Configurable CMD / Entrypoint / Environment Variables
- variable: containerCommand - variable: containerCommand
description: "Commands to execute inside container overriding image CMD default" description: "Commands to execute inside container overriding image CMD default"
label: "Container CMD" label: "Container CMD"
group: "Container Entrypoint" group: "Container Entrypoint"
@@ -102,7 +123,7 @@
label: "Command" label: "Command"
schema: schema:
type: string type: string
- variable: containerArgs - variable: containerArgs
description: "Specify arguments for container command" description: "Specify arguments for container command"
label: "Container Args" label: "Container Args"
group: "Container Entrypoint" group: "Container Entrypoint"
@@ -114,10 +135,10 @@
label: "Arg" label: "Arg"
schema: schema:
type: string type: string
- variable: containerEnvironmentVariables - variable: containerEnvironmentVariables
description: "Container Environment Variables" description: "Container Environment Variables"
label: "Container Environment Variables" label: "Container Environment Variables"
group: "Container Entrypoint" group: "Container Environment Variables"
schema: schema:
type: list type: list
items: items:
@@ -140,8 +161,8 @@
type: string type: string
required: true required: true
# Networking options # Networking options
- variable: externalInterfaces - variable: externalInterfaces
description: "Add External Interfaces" description: "Add External Interfaces"
label: "Add external Interfaces" label: "Add external Interfaces"
group: "Networking" group: "Networking"
@@ -215,9 +236,9 @@
cidr: false cidr: false
required: true required: true
# Storage Options # Storage Options
# Host path based volumes # Host path based volumes
- variable: hostPathVolumes - variable: hostPathVolumes
label: "Host Path Volumes" label: "Host Path Volumes"
group: "Storage" group: "Storage"
schema: schema:
@@ -245,8 +266,8 @@
type: boolean type: boolean
default: false default: false
# Volumes # Volumes
- variable: volumes - variable: volumes
label: "Volumes" label: "Volumes"
group: "Storage" group: "Storage"
schema: schema:
@@ -271,12 +292,12 @@
type: string type: string
required: true required: true
# Pod Probes # Pod Probes
# Liveness Probe # Liveness Probe
- variable: livenessProbe - variable: livenessProbe
label: "Liveness Probe" label: "Liveness Probe"
description: "Configure Liveness Probe" description: "Configure Liveness Probe"
group: "Probes" group: "Health Check"
schema: schema:
type: dict type: dict
default: null default: null