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 @@
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"
@ -14,6 +36,7 @@
# Cronjob schedule
- variable: cronSchedule
label: "Cron Schedule"
group: "Workload Details"
schema:
type: cron
show_if: [["workloadType", "=", "CronJob"]]
@ -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"
@ -58,6 +78,7 @@
- variable: updateStrategy
description: "Upgrade Policy"
label: "Update Strategy"
group: "Scaling/Upgrade Policy"
schema:
type: string
show_if: [["workloadType", "=", "Deployment"]]
@ -117,7 +138,7 @@
- variable: containerEnvironmentVariables
description: "Container Environment Variables"
label: "Container Environment Variables"
group: "Container Entrypoint"
group: "Container Environment Variables"
schema:
type: list
items:
@ -276,7 +297,7 @@
- variable: livenessProbe
label: "Liveness Probe"
description: "Configure Liveness Probe"
group: "Probes"
group: "Health Check"
schema:
type: dict
default: null