Skip to content

Commit

Permalink
Fix Stash Enterprise installer (#70)
Browse files Browse the repository at this point in the history
Signed-off-by: hossainemruz <emruz@appscode.com>
  • Loading branch information
hossainemruz committed Jun 24, 2020
1 parent 31c9dcc commit 15d1594
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 deletions.
8 changes: 4 additions & 4 deletions charts/stash-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: 'Stash by AppsCode - Backup your Kubernetes Volumes'
name: stash
version: v0.10.0-alpha.0
appVersion: v0.10.0-alpha.0
description: 'Stash Enterprise by AppsCode - Enterprise features for Stash'
name: stash-enterprise
version: v0.10.0-alpha.1
appVersion: v0.10.0-alpha.1
home: https://stash.run
icon: https://cdn.appscode.com/images/products/stash/icons/android-icon-192x192.png
sources:
Expand Down
12 changes: 6 additions & 6 deletions charts/stash-enterprise/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
name: v1alpha1.admission.stash-enterprise.appscode.com
name: v1alpha1.admission.stash.appscode.com
labels:
{{- include "stash-enterprise.labels" . | nindent 4 }}
spec:
group: admission.stash-enterprise.appscode.com
group: admission.stash.appscode.com
version: v1alpha1
service:
namespace: {{ .Release.Namespace }}
Expand All @@ -35,11 +35,11 @@ spec:
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
name: v1beta1.admission.stash-enterprise.appscode.com
name: v1beta1.admission.stash.appscode.com
labels:
{{- include "stash-enterprise.labels" . | nindent 4 }}
spec:
group: admission.stash-enterprise.appscode.com
group: admission.stash.appscode.com
version: v1beta1
service:
namespace: {{ .Release.Namespace }}
Expand All @@ -51,11 +51,11 @@ spec:
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
name: v1alpha1.repositories.stash-enterprise.appscode.com
name: v1alpha1.repositories.stash.appscode.com
labels:
{{- include "stash-enterprise.labels" . | nindent 4 }}
spec:
group: repositories.stash-enterprise.appscode.com
group: repositories.stash.appscode.com
version: v1alpha1
service:
namespace: {{ .Release.Namespace }}
Expand Down
10 changes: 5 additions & 5 deletions charts/stash-enterprise/templates/cleaner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ spec:
- sh
- -c
- "sleep 2; \
kubectl delete validatingwebhookconfigurations admission.stash-enterprise.appscode.com || true; \
kubectl delete mutatingwebhookconfiguration admission.stash-enterprise.appscode.com || true; \
kubectl delete apiservice v1alpha1.admission.stash-enterprise.appscode.com || true; \
kubectl delete functions.stash-enterprise.appscode.com update-status pvc-backup pvc-restore || true; \
kubectl delete tasks.stash-enterprise.appscode.com pvc-backup pvc-restore"
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 || true;"
imagePullPolicy: {{ .Values.imagePullPolicy }}
restartPolicy: Never
2 changes: 1 addition & 1 deletion charts/stash-enterprise/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rules:
- validatingwebhookconfigurations
verbs: ["delete", "get", "list", "watch", "patch"]
- apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
resources:
- "*"
verbs: ["*"]
Expand Down
26 changes: 13 additions & 13 deletions charts/stash-enterprise/templates/mutating-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
name: admission.stash-enterprise.appscode.com
name: admission.stash.appscode.com
labels:
{{- include "stash-enterprise.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
webhooks:
- name: deployment.admission.stash-enterprise.appscode.com
- name: deployment.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/deploymentmutators
path: /apis/admission.stash.appscode.com/v1alpha1/deploymentmutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand All @@ -34,12 +34,12 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: daemonset.admission.stash-enterprise.appscode.com
- name: daemonset.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/daemonsetmutators
path: /apis/admission.stash.appscode.com/v1alpha1/daemonsetmutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand All @@ -56,12 +56,12 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: statefulset.admission.stash-enterprise.appscode.com
- name: statefulset.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/statefulsetmutators
path: /apis/admission.stash.appscode.com/v1alpha1/statefulsetmutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand All @@ -76,12 +76,12 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: replicationcontroller.admission.stash-enterprise.appscode.com
- name: replicationcontroller.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/replicationcontrollermutators
path: /apis/admission.stash.appscode.com/v1alpha1/replicationcontrollermutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand All @@ -97,12 +97,12 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: replicaset.admission.stash-enterprise.appscode.com
- name: replicaset.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/replicasetmutators
path: /apis/admission.stash.appscode.com/v1alpha1/replicasetmutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand All @@ -119,12 +119,12 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: deploymentconfig.admission.stash-enterprise.appscode.com
- name: deploymentconfig.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/deploymentconfigmutators
path: /apis/admission.stash.appscode.com/v1alpha1/deploymentconfigmutators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
Expand Down
8 changes: 4 additions & 4 deletions charts/stash-enterprise/templates/user-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation
rules:
- apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
resources:
- restics
- recoveries
- repositories
verbs: ["*"]
- apiGroups:
- repositories.stash-enterprise.appscode.com
- repositories.stash.appscode.com
resources:
- snapshots
verbs: ["delete", "deletecollection", "get", "list"]
Expand All @@ -33,14 +33,14 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation
rules:
- apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
resources:
- restics
- recoveries
- repositories
verbs: ["get", "list", "watch"]
- apiGroups:
- repositories.stash-enterprise.appscode.com
- repositories.stash.appscode.com
resources:
- snapshots
verbs: ["get", "list"]
26 changes: 13 additions & 13 deletions charts/stash-enterprise/templates/validating-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: admission.stash-enterprise.appscode.com
name: admission.stash.appscode.com
labels:
{{- include "stash-enterprise.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
webhooks:
- name: restic.admission.stash-enterprise.appscode.com
- name: restic.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/resticvalidators
path: /apis/admission.stash.appscode.com/v1alpha1/resticvalidators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
- CREATE
- UPDATE
apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
apiVersions:
- "*"
resources:
Expand All @@ -33,19 +33,19 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: recovery.admission.stash-enterprise.appscode.com
- name: recovery.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/recoveryvalidators
path: /apis/admission.stash.appscode.com/v1alpha1/recoveryvalidators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
- CREATE
- UPDATE
apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
apiVersions:
- "*"
resources:
Expand All @@ -54,19 +54,19 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: repository.admission.stash-enterprise.appscode.com
- name: repository.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1alpha1/repositoryvalidators
path: /apis/admission.stash.appscode.com/v1alpha1/repositoryvalidators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
- CREATE
- UPDATE
apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
apiVersions:
- "*"
resources:
Expand All @@ -75,19 +75,19 @@ webhooks:
{{- if and (ge $major 1) (ge $minor 12) }}
sideEffects: None
{{- end }}
- name: restoresession.admission.stash-enterprise.appscode.com
- name: restoresession.admission.stash.appscode.com
clientConfig:
service:
namespace: default
name: kubernetes
path: /apis/admission.stash-enterprise.appscode.com/v1beta1/restoresessionvalidators
path: /apis/admission.stash.appscode.com/v1beta1/restoresessionvalidators
caBundle: {{ b64enc .Values.apiserver.ca }}
rules:
- operations:
- CREATE
- UPDATE
apiGroups:
- stash-enterprise.appscode.com
- stash.appscode.com
apiVersions:
- "*"
resources:
Expand Down

0 comments on commit 15d1594

Please sign in to comment.