Skip to content

Commit

Permalink
Delete orphaned apiservice (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Dec 21, 2019
1 parent a9c33b3 commit 3ab35e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/stash/templates/cleaner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
- "sleep 2; \
kubectl delete validatingwebhookconfigurations admission.stash.appscode.com || true; \
kubectl delete mutatingwebhookconfiguration admission.stash.appscode.com || true; \
kubectl delete apiservice v1alpha1.admission.stash.appscode.com || true; \
kubectl delete functions.stash.appscode.com update-status pvc-backup pvc-restore || true; \
kubectl delete tasks.stash.appscode.com pvc-backup pvc-restore"
imagePullPolicy: {{ .Values.imagePullPolicy }}
Expand Down
2 changes: 1 addition & 1 deletion charts/stash/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rules:
- apiregistration.k8s.io
resources:
- apiservices
verbs: ["get", "patch"]
verbs: ["get", "patch", "delete"]
- apiGroups:
- admissionregistration.k8s.io
resources:
Expand Down

0 comments on commit 3ab35e3

Please sign in to comment.