-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstash.yaml
More file actions
91 lines (87 loc) · 2.44 KB
/
stash.yaml
File metadata and controls
91 lines (87 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{{ $defaults := printf `
global:
registryFQDN: %s
stash-enterprise:
pushgateway:
registry: %s
features:
enterprise: true
`
(include "registry.ghcr" $)
(include "image.dockerLibrary" (merge (dict "_repo" "prom") $))
| fromYaml }}
{{ $vals := dig "stash" "values" (dict) .Values.helm.releases }}
{{ $vals = mergeOverwrite $defaults $vals }}
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: Feature
metadata:
name: stash
labels:
app.kubernetes.io/part-of: opscenter-backup
spec:
title: Stash
description: |
Kubernetes operator for backup and recovery of application running inside Kubernetes.
icons:
- src: https://cdn.appscode.com/k8s/icons/menu/cluster.svg
type: image/svg+xml
featureSet: opscenter-backup
featureBlock: stash
recommended: false
requirements:
features:
- license-proxyserver
readinessChecks:
workloads:
- group: apps
version: v1
kind: Deployment
selector:
app.kubernetes.io/name: stash-enterprise
ignoreDifferences:
- jsonPointers:
- /data
kind: Secret
name: stash-stash-enterprise-apiserver-cert
namespace: {{ printf "{{ .Release.Namespace }}" }}
- group: apiregistration.k8s.io
kind: APIService
name: v1alpha1.admission.stash.appscode.com
jsonPointers:
- /spec/caBundle
- /metadata/annotations/admission-webhook.appscode.com~1active
- /metadata/annotations/admission-webhook.appscode.com~1status
- group: apiregistration.k8s.io
kind: APIService
name: v1alpha1.repositories.stash.appscode.com
jsonPointers:
- /spec/caBundle
- group: apiregistration.k8s.io
kind: APIService
name: v1beta1.admission.stash.appscode.com
jsonPointers:
- /spec/caBundle
- group: apps
kind: Deployment
name: stash-stash-enterprise
namespace: {{ printf "{{ .Release.Namespace }}" }}
jsonPointers:
- /spec/template/metadata/annotations/checksum~1apiregistration.yaml
chart:
name: stash
namespace: stash
createNamespace: {{ $.Values.helm.createNamespace }}
version: {{ dig "stash" "version" "" $.Values.helm.releases }}
sourceRef:
kind: HelmRepository
name: appscode-charts-oci
namespace: {{ .Release.Namespace }}
valuesFrom:
{{- if eq (include "clustermanager.openshift" $) "true" }}
- kind: ConfigMap
name: ace-openshift-scc
valuesKey: stash.yaml
{{- end }}
{{- with $vals }}
{{- dict "values" . | toYaml | nindent 2 }}
{{- end }}