From 7bc86fe1fcd539a69f741d75dd4e54b3e8556e48 Mon Sep 17 00:00:00 2001 From: drfaust92 Date: Fri, 29 Mar 2024 18:05:36 +0300 Subject: [PATCH] generate crds from tag Signed-off-by: drfaust92 --- .../templates/crds/crd-application.yaml | 13 +--- .../templates/crds/crd-applicationset.yaml | 13 +--- .../argo-cd/templates/crds/crd-project.yaml | 13 +--- .../templates/crds/analysis-run-crd.yaml | 63 +------------------ .../templates/crds/analysis-template-crd.yaml | 63 +------------------ .../crds/cluster-analysis-template-crd.yaml | 63 +------------------ .../templates/crds/experiment-crd.yaml | 12 +--- .../templates/crds/rollout-crd.yaml | 12 +--- 8 files changed, 14 insertions(+), 238 deletions(-) diff --git a/charts/argo-cd/templates/crds/crd-application.yaml b/charts/argo-cd/templates/crds/crd-application.yaml index 9869efbb..0d00e98c 100644 --- a/charts/argo-cd/templates/crds/crd-application.yaml +++ b/charts/argo-cd/templates/crds/crd-application.yaml @@ -1,20 +1,10 @@ -{{- if .Values.crds.install }} +# https://raw.githubusercontent.com/argoproj/argo-cd/v2.10.5/manifests/crds/application-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: - annotations: - {{- if .Values.crds.keep }} - "helm.sh/resource-policy": keep - {{- end }} - {{- with .Values.crds.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} labels: app.kubernetes.io/name: applications.argoproj.io app.kubernetes.io/part-of: argocd - {{- with .Values.crds.additionalLabels }} - {{- toYaml . | nindent 4}} - {{- end }} name: applications.argoproj.io spec: group: argoproj.io @@ -4947,4 +4937,3 @@ spec: served: true storage: true subresources: {} -{{- end }} diff --git a/charts/argo-cd/templates/crds/crd-applicationset.yaml b/charts/argo-cd/templates/crds/crd-applicationset.yaml index 323beb27..aced1843 100644 --- a/charts/argo-cd/templates/crds/crd-applicationset.yaml +++ b/charts/argo-cd/templates/crds/crd-applicationset.yaml @@ -1,20 +1,10 @@ -{{- if and .Values.crds.install .Values.applicationSet.enabled }} +# https://raw.githubusercontent.com/argoproj/argo-cd/v2.10.5/manifests/crds/applicationset-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: - annotations: - {{- if .Values.crds.keep }} - "helm.sh/resource-policy": keep - {{- end }} - {{- with .Values.crds.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} labels: app.kubernetes.io/name: applicationsets.argoproj.io app.kubernetes.io/part-of: argocd - {{- with .Values.crds.additionalLabels }} - {{- toYaml . | nindent 4}} - {{- end }} name: applicationsets.argoproj.io spec: group: argoproj.io @@ -15247,4 +15237,3 @@ spec: storage: true subresources: status: {} -{{- end }} diff --git a/charts/argo-cd/templates/crds/crd-project.yaml b/charts/argo-cd/templates/crds/crd-project.yaml index 38801469..00199c8a 100644 --- a/charts/argo-cd/templates/crds/crd-project.yaml +++ b/charts/argo-cd/templates/crds/crd-project.yaml @@ -1,20 +1,10 @@ -{{- if .Values.crds.install }} +# https://raw.githubusercontent.com/argoproj/argo-cd/v2.10.5/manifests/crds/appproject-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: - annotations: - {{- if .Values.crds.keep }} - "helm.sh/resource-policy": keep - {{- end }} - {{- with .Values.crds.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} labels: app.kubernetes.io/name: appprojects.argoproj.io app.kubernetes.io/part-of: argocd - {{- with .Values.crds.additionalLabels }} - {{- toYaml . | nindent 4}} - {{- end }} name: appprojects.argoproj.io spec: group: argoproj.io @@ -333,4 +323,3 @@ spec: type: object served: true storage: true -{{- end }} diff --git a/charts/argo-rollouts/templates/crds/analysis-run-crd.yaml b/charts/argo-rollouts/templates/crds/analysis-run-crd.yaml index 1dddfa7d..16b4c530 100644 --- a/charts/argo-rollouts/templates/crds/analysis-run-crd.yaml +++ b/charts/argo-rollouts/templates/crds/analysis-run-crd.yaml @@ -1,18 +1,9 @@ -{{- if .Values.installCRDs }} +# https://raw.githubusercontent.com/argoproj/argo-rollouts/v1.6.6/manifests/crds/analysis-run-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.1 - {{- if .Values.keepCRDs }} - "helm.sh/resource-policy": keep - {{- end }} - {{- if .Values.crdAnnotations }} - {{- toYaml .Values.crdAnnotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: argo-rollouts - app.kubernetes.io/part-of: argo-rollouts name: analysisruns.argoproj.io spec: group: argoproj.io @@ -189,22 +180,13 @@ spec: datadog: properties: apiVersion: - default: v1 - enum: - - v1 - - v2 - type: string - formula: type: string interval: - default: 5m type: string - queries: - additionalProperties: - type: string - type: object query: type: string + required: + - query type: object graphite: properties: @@ -2818,19 +2800,6 @@ spec: type: string authentication: properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object sigv4: properties: profile: @@ -2879,31 +2848,6 @@ spec: type: object web: properties: - authentication: - properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object - sigv4: - properties: - profile: - type: string - region: - type: string - roleArn: - type: string - type: object - type: object body: type: string headers: @@ -3066,4 +3010,3 @@ spec: served: true storage: true subresources: {} -{{- end }} diff --git a/charts/argo-rollouts/templates/crds/analysis-template-crd.yaml b/charts/argo-rollouts/templates/crds/analysis-template-crd.yaml index d97a6ce9..8d60fb50 100644 --- a/charts/argo-rollouts/templates/crds/analysis-template-crd.yaml +++ b/charts/argo-rollouts/templates/crds/analysis-template-crd.yaml @@ -1,18 +1,9 @@ -{{- if .Values.installCRDs }} +# https://raw.githubusercontent.com/argoproj/argo-rollouts/v1.6.6/manifests/crds/analysis-template-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.1 - {{- if .Values.keepCRDs }} - "helm.sh/resource-policy": keep - {{- end }} - {{- if .Values.crdAnnotations }} - {{- toYaml .Values.crdAnnotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: argo-rollouts - app.kubernetes.io/part-of: argo-rollouts name: analysistemplates.argoproj.io spec: group: argoproj.io @@ -185,22 +176,13 @@ spec: datadog: properties: apiVersion: - default: v1 - enum: - - v1 - - v2 - type: string - formula: type: string interval: - default: 5m type: string - queries: - additionalProperties: - type: string - type: object query: type: string + required: + - query type: object graphite: properties: @@ -2814,19 +2796,6 @@ spec: type: string authentication: properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object sigv4: properties: profile: @@ -2875,31 +2844,6 @@ spec: type: object web: properties: - authentication: - properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object - sigv4: - properties: - profile: - type: string - region: - type: string - roleArn: - type: string - type: object - type: object body: type: string headers: @@ -2948,4 +2892,3 @@ spec: served: true storage: true subresources: {} -{{- end }} diff --git a/charts/argo-rollouts/templates/crds/cluster-analysis-template-crd.yaml b/charts/argo-rollouts/templates/crds/cluster-analysis-template-crd.yaml index 335f06a2..506d9c20 100644 --- a/charts/argo-rollouts/templates/crds/cluster-analysis-template-crd.yaml +++ b/charts/argo-rollouts/templates/crds/cluster-analysis-template-crd.yaml @@ -1,18 +1,9 @@ -{{- if .Values.installCRDs }} +# https://raw.githubusercontent.com/argoproj/argo-rollouts/v1.6.6/manifests/crds/cluster-analysis-template-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.1 - {{- if .Values.keepCRDs }} - "helm.sh/resource-policy": keep - {{- end }} - {{- if .Values.crdAnnotations }} - {{- toYaml .Values.crdAnnotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: argo-rollouts - app.kubernetes.io/part-of: argo-rollouts name: clusteranalysistemplates.argoproj.io spec: group: argoproj.io @@ -185,22 +176,13 @@ spec: datadog: properties: apiVersion: - default: v1 - enum: - - v1 - - v2 - type: string - formula: type: string interval: - default: 5m type: string - queries: - additionalProperties: - type: string - type: object query: type: string + required: + - query type: object graphite: properties: @@ -2814,19 +2796,6 @@ spec: type: string authentication: properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object sigv4: properties: profile: @@ -2875,31 +2844,6 @@ spec: type: object web: properties: - authentication: - properties: - oauth2: - properties: - clientId: - type: string - clientSecret: - type: string - scopes: - items: - type: string - type: array - tokenUrl: - type: string - type: object - sigv4: - properties: - profile: - type: string - region: - type: string - roleArn: - type: string - type: object - type: object body: type: string headers: @@ -2948,4 +2892,3 @@ spec: served: true storage: true subresources: {} -{{- end }} diff --git a/charts/argo-rollouts/templates/crds/experiment-crd.yaml b/charts/argo-rollouts/templates/crds/experiment-crd.yaml index 2f60d415..c15d8479 100644 --- a/charts/argo-rollouts/templates/crds/experiment-crd.yaml +++ b/charts/argo-rollouts/templates/crds/experiment-crd.yaml @@ -1,18 +1,9 @@ -{{- if .Values.installCRDs }} +# https://raw.githubusercontent.com/argoproj/argo-rollouts/v1.6.6/manifests/crds/experiment-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.1 - {{- if .Values.keepCRDs }} - "helm.sh/resource-policy": keep - {{- end }} - {{- if .Values.crdAnnotations }} - {{- toYaml .Values.crdAnnotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: argo-rollouts - app.kubernetes.io/part-of: argo-rollouts name: experiments.argoproj.io spec: group: argoproj.io @@ -2655,4 +2646,3 @@ spec: served: true storage: true subresources: {} -{{- end }} diff --git a/charts/argo-rollouts/templates/crds/rollout-crd.yaml b/charts/argo-rollouts/templates/crds/rollout-crd.yaml index 7faf3790..17624656 100644 --- a/charts/argo-rollouts/templates/crds/rollout-crd.yaml +++ b/charts/argo-rollouts/templates/crds/rollout-crd.yaml @@ -1,18 +1,9 @@ -{{- if .Values.installCRDs }} +# https://raw.githubusercontent.com/argoproj/argo-rollouts/v1.6.6/manifests/crds/rollout-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.1 - {{- if .Values.keepCRDs }} - "helm.sh/resource-policy": keep - {{- end }} - {{- if .Values.crdAnnotations }} - {{- toYaml .Values.crdAnnotations | nindent 4 }} - {{- end }} - labels: - app.kubernetes.io/name: argo-rollouts - app.kubernetes.io/part-of: argo-rollouts name: rollouts.argoproj.io spec: group: argoproj.io @@ -3638,4 +3629,3 @@ spec: specReplicasPath: .spec.replicas statusReplicasPath: .status.HPAReplicas status: {} -{{- end }}