Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
73e0b275
Commit
73e0b275
authored
Oct 08, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add initial support for job type workloads
parent
7ca337a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
charts/ix-chart/2009.0.1/questions.yaml
charts/ix-chart/2009.0.1/questions.yaml
+14
-0
charts/ix-chart/2009.0.1/templates/deployment.yaml
charts/ix-chart/2009.0.1/templates/deployment.yaml
+3
-1
charts/ix-chart/2009.0.1/values.yaml
charts/ix-chart/2009.0.1/values.yaml
+0
-4
No files found.
charts/ix-chart/2009.0.1/questions.yaml
View file @
73e0b275
# 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"
...
...
charts/ix-chart/2009.0.1/templates/deployment.yaml
View file @
73e0b275
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
}}
...
...
charts/ix-chart/2009.0.1/values.yaml
View file @
73e0b275
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment