Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joe Mayer
system-charts
Commits
bb89f841
Commit
bb89f841
authored
Aug 31, 2019
by
Guangbo
Committed by
Craig Jellick
Aug 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add delete istio sidecars crd
parent
394986a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
charts/rancher-istio/0.0.2/charts/istio-init/templates/job-crd-11.yaml
...r-istio/0.0.2/charts/istio-init/templates/job-crd-11.yaml
+34
-0
No files found.
charts/rancher-istio/0.0.2/charts/istio-init/templates/job-crd-11.yaml
View file @
bb89f841
...
@@ -29,3 +29,37 @@ spec:
...
@@ -29,3 +29,37 @@ spec:
configMap
:
configMap
:
name
:
istio-crd-11
name
:
istio-crd-11
restartPolicy
:
OnFailure
restartPolicy
:
OnFailure
{{
- if .Values.deleteCRDs
}}
---
apiVersion
:
batch/v1
kind
:
Job
metadata
:
namespace
:
{{
.Release.Namespace
}}
name
:
istio-init-delete-crd-11
annotations
:
"
helm.sh/hook"
:
"
pre-delete"
"
helm.sh/hook-delete-policy"
:
"
hook-succeeded,
before-hook-creation,
hook-failed"
spec
:
template
:
metadata
:
annotations
:
sidecar.istio.io/inject
:
"
false"
spec
:
serviceAccountName
:
istio-init-service-account
containers
:
-
name
:
istio-init-crd-11
image
:
"
{{
template
"system_default_registry" . }}{{ .Values.global.kubectl.repository }}:{{ .Values.global.kubectl.tag }}"
imagePullPolicy
:
{{
.Values.global.imagePullPolicy
}}
volumeMounts
:
-
name
:
crd-11
mountPath
:
/etc/istio/crd-11
readOnly
:
true
command
:
[
"
kubectl"
,
"
delete"
,
"
-f"
,
"
/etc/istio/crd-11/crd-11.yaml"
]
volumes
:
-
name
:
crd-11
configMap
:
name
:
istio-crd-11
restartPolicy
:
Never
backoffLimit
:
1
{{
- end
}}
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