Update questions.yml format

This commit is contained in:
Waqar Ahmed 2020-10-13 04:31:55 +05:00
parent 10424343cb
commit 5c6aba4a4a
1 changed files with 319 additions and 298 deletions

View File

@ -1,7 +1,29 @@
# Workload type
- variable: workloadType
groups:
- 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"
label: "Workload Type"
group: "Workload Details"
schema:
type: string
default: "Deployment"
@ -11,17 +33,18 @@
- "Job"
- "CronJob"
# Cronjob schedule
- variable: cronSchedule
# Cronjob schedule
- variable: cronSchedule
label: "Cron Schedule"
group: "Workload Details"
schema:
type: cron
show_if: [["workloadType", "=", "CronJob"]]
default:
minute: "5"
# Image related
- variable: image
# Image related
- variable: image
description: "Docker Image Details"
group: "Container Images"
schema:
@ -31,21 +54,18 @@
- variable: repository
description: "Docker image repository"
label: "Image repository"
group: "Container Images"
schema:
type: string
required: true
- variable: tag
description: "Tag to use for specified image"
label: "Image Tag"
group: "Container Images"
schema:
type: string
default: "latest"
- variable: pullPolicy
description: "Docker Image Pull Policy"
label: "Image Pull Policy"
group: "Container Images"
schema:
type: string
default: "IfNotPresent"
@ -54,10 +74,11 @@
- "Always"
- "Never"
# Update strategy
- variable: updateStrategy
# Update strategy
- variable: updateStrategy
description: "Upgrade Policy"
label: "Update Strategy"
group: "Scaling/Upgrade Policy"
schema:
type: string
show_if: [["workloadType", "=", "Deployment"]]
@ -66,8 +87,8 @@
- "RollingUpdate"
- "Recreate"
# Restart Policy
- variable: restartPolicy
# Restart Policy
- variable: restartPolicy
description: "Restart Policy for workload"
label: "Restart Policy"
schema:
@ -78,7 +99,7 @@
- "Always"
- "OnFailure"
- "Never"
- variable: jobRestartPolicy
- variable: jobRestartPolicy
description: "Restart Policy for workload"
label: "Restart Policy"
schema:
@ -89,8 +110,8 @@
- "OnFailure"
- "Never"
# Configurable CMD / Entrypoint / Environment Variables
- variable: containerCommand
# Configurable CMD / Entrypoint / Environment Variables
- variable: containerCommand
description: "Commands to execute inside container overriding image CMD default"
label: "Container CMD"
group: "Container Entrypoint"
@ -102,7 +123,7 @@
label: "Command"
schema:
type: string
- variable: containerArgs
- variable: containerArgs
description: "Specify arguments for container command"
label: "Container Args"
group: "Container Entrypoint"
@ -114,10 +135,10 @@
label: "Arg"
schema:
type: string
- variable: containerEnvironmentVariables
- variable: containerEnvironmentVariables
description: "Container Environment Variables"
label: "Container Environment Variables"
group: "Container Entrypoint"
group: "Container Environment Variables"
schema:
type: list
items:
@ -140,8 +161,8 @@
type: string
required: true
# Networking options
- variable: externalInterfaces
# Networking options
- variable: externalInterfaces
description: "Add External Interfaces"
label: "Add external Interfaces"
group: "Networking"
@ -215,9 +236,9 @@
cidr: false
required: true
# Storage Options
# Host path based volumes
- variable: hostPathVolumes
# Storage Options
# Host path based volumes
- variable: hostPathVolumes
label: "Host Path Volumes"
group: "Storage"
schema:
@ -245,8 +266,8 @@
type: boolean
default: false
# Volumes
- variable: volumes
# Volumes
- variable: volumes
label: "Volumes"
group: "Storage"
schema:
@ -271,12 +292,12 @@
type: string
required: true
# Pod Probes
# Liveness Probe
- variable: livenessProbe
# Pod Probes
# Liveness Probe
- variable: livenessProbe
label: "Liveness Probe"
description: "Configure Liveness Probe"
group: "Probes"
group: "Health Check"
schema:
type: dict
default: null