-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better support for the validatingWebhook
Signed-off-by: Travis Glenn Hansen <[email protected]>
- Loading branch information
1 parent
a8fa3ad
commit baf7762
Showing
6 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
stable/snapshot-controller/templates/rbac-snapshot-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
stable/snapshot-controller/templates/rbac-snapshot-webhook.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.validatingWebhook.rbac.enabled }} | ||
# RBAC file for the snapshot webhook. | ||
# | ||
# The snapshot webhook implements the validation and admission for CSI snapshot functionality. | ||
# It should be installed as part of the base Kubernetes distribution in an appropriate | ||
# namespace for components implementing base system functionality. For installing with | ||
# Vanilla Kubernetes, kube-system makes sense for the namespace. | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: snapshot-webhook | ||
namespace: {{ .Release.Namespace | quote }} | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: snapshot-webhook-runner | ||
rules: | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshotclasses"] | ||
verbs: ["get", "list", "watch"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: snapshot-webhook-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: snapshot-webhook | ||
namespace: {{ .Release.Namespace | quote }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: snapshot-webhook-runner | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters