File tree Expand file tree Collapse file tree 5 files changed +74
-1
lines changed Expand file tree Collapse file tree 5 files changed +74
-1
lines changed Original file line number Diff line number Diff line change 22
22
---
23
23
apiVersion : apiregistration.k8s.io/v1beta1
24
24
kind : APIService
25
+ metadata :
26
+ name : v1beta1.admission.stash.appscode.com
27
+ labels :
28
+ {{- include "stash.labels" . | nindent 4 }}
29
+ spec :
30
+ group : admission.stash.appscode.com
31
+ version : v1beta1
32
+ service :
33
+ namespace : {{ .Release.Namespace }}
34
+ name : {{ template "stash.fullname" . }}
35
+ caBundle : {{ b64enc $ca.Cert }}
36
+ groupPriorityMinimum : {{ .Values.apiserver.groupPriorityMinimum }}
37
+ versionPriority : {{ .Values.apiserver.versionPriority }}
38
+ ---
39
+ apiVersion : apiregistration.k8s.io/v1beta1
40
+ kind : APIService
25
41
metadata :
26
42
name : v1alpha1.repositories.stash.appscode.com
27
43
labels :
Original file line number Diff line number Diff line change @@ -75,4 +75,25 @@ webhooks:
75
75
{{- if and (ge $major 1) (ge $minor 12) }}
76
76
sideEffects : None
77
77
{{- end }}
78
+ - name : restoresession.admission.stash.appscode.com
79
+ clientConfig :
80
+ service :
81
+ namespace : default
82
+ name : kubernetes
83
+ path : /apis/admission.stash.appscode.com/v1beta1/restoresessionvalidators
84
+ caBundle : {{ b64enc .Values.apiserver.ca }}
85
+ rules :
86
+ - operations :
87
+ - CREATE
88
+ - UPDATE
89
+ apiGroups :
90
+ - stash.appscode.com
91
+ apiVersions :
92
+ - " *"
93
+ resources :
94
+ - restoresessions
95
+ failurePolicy : Fail
96
+ {{- if and (ge $major 1) (ge $minor 12) }}
97
+ sideEffects : None
98
+ {{- end }}
78
99
{{ end }}
Original file line number Diff line number Diff line change 18
18
# register as aggregated apiserver
19
19
apiVersion : apiregistration.k8s.io/v1beta1
20
20
kind : APIService
21
+ metadata :
22
+ name : v1beta1.admission.stash.appscode.com
23
+ labels :
24
+ app : stash
25
+ spec :
26
+ caBundle : ${SERVICE_SERVING_CERT_CA}
27
+ group : admission.stash.appscode.com
28
+ groupPriorityMinimum : 1000
29
+ versionPriority : 15
30
+ service :
31
+ name : stash-operator
32
+ namespace : ${STASH_NAMESPACE}
33
+ version : v1beta1
34
+ ---
35
+ # register as aggregated apiserver
36
+ apiVersion : apiregistration.k8s.io/v1beta1
37
+ kind : APIService
21
38
metadata :
22
39
name : v1alpha1.repositories.stash.appscode.com
23
40
labels :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eou pipefail
3
3
4
- crds=(restics repositories recoveries backupconfigurations backupsessions)
4
+ crds=(restics repositories recoveries backupconfigurations backupsessions backupconfigurationtemplates functions restoresessions tasks )
5
5
6
6
echo " checking kubeconfig context"
7
7
kubectl config current-context || {
Original file line number Diff line number Diff line change @@ -62,3 +62,22 @@ webhooks:
62
62
- repositories
63
63
failurePolicy : Fail
64
64
${STASH_WEBHOOK_SIDE_EFFECTS}
65
+ - name : restoresession.admission.stash.appscode.com
66
+ clientConfig :
67
+ service :
68
+ namespace : default
69
+ name : kubernetes
70
+ path : /apis/admission.stash.appscode.com/v1beta1/restoresessionvalidators
71
+ caBundle : ${KUBE_CA}
72
+ rules :
73
+ - operations :
74
+ - CREATE
75
+ - UPDATE
76
+ apiGroups :
77
+ - stash.appscode.com
78
+ apiVersions :
79
+ - " *"
80
+ resources :
81
+ - restoresessions
82
+ failurePolicy : Fail
83
+ ${STASH_WEBHOOK_SIDE_EFFECTS}
You can’t perform that action at this time.
0 commit comments