Install crds with helm hook
This commit is contained in:
parent
f935a89f6d
commit
42faa9967b
2 changed files with 44 additions and 0 deletions
22
charts/argo-cd/templates/crds/application-crd.yaml
Normal file
22
charts/argo-cd/templates/crds/application-crd.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: {{ include "argo-cd.name" . }}
|
||||||
|
name: applications.argoproj.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: Application
|
||||||
|
plural: applications
|
||||||
|
shortNames:
|
||||||
|
- app
|
||||||
|
- apps
|
||||||
|
scope: Namespaced
|
||||||
|
version: v1alpha1
|
22
charts/argo-cd/templates/crds/appproject-crd.yaml
Normal file
22
charts/argo-cd/templates/crds/appproject-crd.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: {{ include "argo-cd.name" . }}
|
||||||
|
name: appprojects.argoproj.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: AppProject
|
||||||
|
plural: appprojects
|
||||||
|
shortNames:
|
||||||
|
- appproj
|
||||||
|
- appprojs
|
||||||
|
scope: Namespaced
|
||||||
|
version: v1alpha1
|
Loading…
Reference in a new issue