Commit 73e0b275 authored by Waqar Ahmed's avatar Waqar Ahmed

Add initial support for job type workloads

parent 7ca337a5
# Workload type
- variable: workloadType
description: "Please specify type of workload to deploy"
lablel: "Workload Type"
schema:
type: string
default: "Deployment"
required: true
enum:
- "Deployment"
- "Job"
- "CronJob"
# Image related
- variable: image
description: "Docker Image Details"
......@@ -38,6 +51,7 @@
label: "Update Strategy"
schema:
type: string
show_if: [["workloadType", "=", "Deployment"]]
default: "RollingUpdate"
enum:
- "RollingUpdate"
......
apiVersion: apps/v1
kind: Deployment
kind: {{ .Values.workloadType }}
metadata:
name: {{ include "ix-chart.fullname" . }}
labels:
{{- include "ix-chart.labels" . | nindent 4 }}
spec:
{{- if eq .Values.workloadType "Deployment" }}
strategy:
type: {{ .Values.updateStrategy }}
{{- end }}
selector:
matchLabels:
{{- include "ix-chart.selectorLabels" . | nindent 6 }}
......
......@@ -6,10 +6,6 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: "testing"
# Update strategy
updateStrategy: "RollingUpdate"
# Restart Policy
restartPolicy: "Always"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment