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
c8647519
Commit
c8647519
authored
Jan 17, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deployments only support Always restart policy for containers
parent
e71956ff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
19 deletions
+1
-19
test/ix-chart/2012.0.0/README.md
test/ix-chart/2012.0.0/README.md
+0
-1
test/ix-chart/2012.0.0/questions.yaml
test/ix-chart/2012.0.0/questions.yaml
+0
-15
test/ix-chart/2012.0.0/templates/_workload.tpl
test/ix-chart/2012.0.0/templates/_workload.tpl
+1
-1
test/ix-chart/2012.0.0/test_values.yaml
test/ix-chart/2012.0.0/test_values.yaml
+0
-1
test/ix-chart/2012.0.0/values.yaml
test/ix-chart/2012.0.0/values.yaml
+0
-1
No files found.
test/ix-chart/2012.0.0/README.md
View file @
c8647519
...
@@ -22,7 +22,6 @@ their default values.
...
@@ -22,7 +22,6 @@ their default values.
|
`image.tag`
| The image tag to pull from |
`latest`
|
|
`image.tag`
| The image tag to pull from |
`latest`
|
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`updateStrategy`
| Upgrade Policy |
`RollingUpdate`
|
|
`updateStrategy`
| Upgrade Policy |
`RollingUpdate`
|
|
`restartPolicy`
| Restart Policy for containers in workload |
`Always`
|
|
`jobRestartPolicy`
| Restart Policy for job type workload ( only applicable if
`workloadType`
is
`Job`
/
`CronJob`
|
`OnFailure`
|
|
`jobRestartPolicy`
| Restart Policy for job type workload ( only applicable if
`workloadType`
is
`Job`
/
`CronJob`
|
`OnFailure`
|
|
`containerCommand`
| Commands to execute inside container overriding image CMD default |
`null`
|
|
`containerCommand`
| Commands to execute inside container overriding image CMD default |
`null`
|
|
`containerArgs`
| Specify arguments for container command |
`null`
|
|
`containerArgs`
| Specify arguments for container command |
`null`
|
...
...
test/ix-chart/2012.0.0/questions.yaml
View file @
c8647519
...
@@ -99,21 +99,6 @@ questions:
...
@@ -99,21 +99,6 @@ questions:
description
:
"
Kill
existing
pods
before
creating
new
ones"
description
:
"
Kill
existing
pods
before
creating
new
ones"
# Restart Policy
# Restart Policy
-
variable
:
restartPolicy
description
:
"
Restart
Policy
for
workload"
label
:
"
Restart
Policy"
group
:
"
Restart
Policy"
schema
:
type
:
string
show_if
:
[[
"
workloadType"
,
"
="
,
"
Deployment"
]]
default
:
"
Always"
enum
:
-
value
:
"
Always"
description
:
"
Always
restart
containers
in
a
pod
if
they
exit"
-
value
:
"
OnFailure"
description
:
"
Only
restart
containers
if
they
exit
with
a
failure"
-
value
:
"
Never"
description
:
"
Never
restart
containers
if
they
exit"
-
variable
:
jobRestartPolicy
-
variable
:
jobRestartPolicy
description
:
"
Restart
Policy
for
workload"
description
:
"
Restart
Policy
for
workload"
label
:
"
Restart
Policy"
label
:
"
Restart
Policy"
...
...
test/ix-chart/2012.0.0/templates/_workload.tpl
View file @
c8647519
...
@@ -39,7 +39,7 @@ Get Restart policy based on workload type
...
@@ -39,7 +39,7 @@ Get Restart policy based on workload type
*/
}
}
*/
}
}
{{- define "restartPolicy" -}}
{{- define "restartPolicy" -}}
{{- if eq (include "workloadIsDeployment" .) "true" }}
{{- if eq (include "workloadIsDeployment" .) "true" }}
{{- print
f "%s" .Values.restartPolicy
}}
{{- print
"Always"
}}
{{- else }}
{{- else }}
{{- printf "%s" .Values.jobRestartPolicy }}
{{- printf "%s" .Values.jobRestartPolicy }}
{{- end }}
{{- end }}
...
...
test/ix-chart/2012.0.0/test_values.yaml
View file @
c8647519
...
@@ -7,7 +7,6 @@ image:
...
@@ -7,7 +7,6 @@ image:
tag
:
latest
tag
:
latest
# Restart / Update policy
# Restart / Update policy
restartPolicy
:
Always
updateStrategy
:
RollingUpdate
updateStrategy
:
RollingUpdate
# Container CMD / entrypoint
# Container CMD / entrypoint
...
...
test/ix-chart/2012.0.0/values.yaml
View file @
c8647519
...
@@ -7,7 +7,6 @@ image:
...
@@ -7,7 +7,6 @@ image:
tag
:
"
latest"
tag
:
"
latest"
# Restart / Update policy
# Restart / Update policy
restartPolicy
:
Always
updateStrategy
:
RollingUpdate
updateStrategy
:
RollingUpdate
# Container CMD / entrypoint
# Container CMD / entrypoint
...
...
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