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
d9c1000a
Commit
d9c1000a
authored
Oct 07, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for specifying restart policy
parent
4b245b1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
charts/ix-chart/2009.0.1/questions.yaml
charts/ix-chart/2009.0.1/questions.yaml
+17
-5
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
+3
-0
No files found.
charts/ix-chart/2009.0.1/questions.yaml
View file @
d9c1000a
...
...
@@ -37,11 +37,23 @@
description
:
"
Upgrade
Policy"
label
:
"
Update
Strategy"
schema
:
-
type
:
string
default
:
"
RollingUpdate"
enum
:
-
"
RollingUpdate"
-
"
Recreate"
type
:
string
default
:
"
RollingUpdate"
enum
:
-
"
RollingUpdate"
-
"
Recreate"
# Restart Policy
-
variable
:
restartPolicy
description
:
"
Restart
Policy
for
workload"
label
:
"
Restart
Policy"
schema
:
type
:
string
default
:
"
Always"
enum
:
-
"
Always"
-
"
OnFailure"
-
"
Never"
# Configurable CMD / Entrypoint / Environment Variables
-
variable
:
containerCommand
...
...
charts/ix-chart/2009.0.1/templates/deployment.yaml
View file @
d9c1000a
...
...
@@ -5,6 +5,8 @@ metadata:
labels
:
{{
- include "ix-chart.labels" . | nindent 4
}}
spec
:
strategy
:
type
:
{{
.Values.updateStrategy
}}
selector
:
matchLabels
:
{{
- include "ix-chart.selectorLabels" . | nindent 6
}}
...
...
@@ -18,7 +20,7 @@ spec:
k8s.v1.cni.cncf.io/networks
:
{{
join "
,
"
.Values.ixExternalInterfacesConfigurationNames
}}
{{-
end
}}
spec:
strategy:
{{
.Values.updateStrategy
}}
restartPolicy:
{{
.Values.restartPolicy
|
quote
}}
containers:
-
name:
{{
.Chart.Name
}}
{{-
if
or
.Values.hostPathVolumes
.Values.persistentVolumeClaims
}}
...
...
charts/ix-chart/2009.0.1/values.yaml
View file @
d9c1000a
...
...
@@ -10,6 +10,9 @@ image:
# Update strategy
updateStrategy
:
"
RollingUpdate"
# Restart Policy
restartPolicy
:
"
Always"
# Container CMD / entrypoint
containerCommand
:
[]
containerArgs
:
[]
...
...
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