From d414f16810c874d8c3098ba757adfdf9ed42dee3 Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 17 Aug 2024 21:50:12 +0100 Subject: [PATCH] Fix main not working (#146) --- inventory/classes/components/keda.yml | 13 ------------- inventory/classes/kapitan/generators/kubernetes.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/inventory/classes/components/keda.yml b/inventory/classes/components/keda.yml index 70f7c578..e1b46845 100644 --- a/inventory/classes/components/keda.yml +++ b/inventory/classes/components/keda.yml @@ -28,16 +28,3 @@ parameters: namespace: ${keda:params:namespace} name: ${keda:params:chart_name} helm_values: ${keda:params:helm_values} - mutations: - bundle: - - conditions: - # CRDs need to be setup separately - kind: [CustomResourceDefinition] - filename: '{content.component_name}-crds' - patch: - - conditions: - kind: [CustomResourceDefinition] - patch: - metadata: - annotations: - argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true,Replace=true \ No newline at end of file diff --git a/inventory/classes/kapitan/generators/kubernetes.yml b/inventory/classes/kapitan/generators/kubernetes.yml index d9b6230d..2f99d14d 100644 --- a/inventory/classes/kapitan/generators/kubernetes.yml +++ b/inventory/classes/kapitan/generators/kubernetes.yml @@ -42,9 +42,21 @@ parameters: - conditions: kind: [HorizontalPodAutoscaler, PodDisruptionBudget, VerticalPodAutoscaler] filename: '{content.component_name}-scaling' + - conditions: + # CRDs need to be setup separately + kind: [CustomResourceDefinition] + filename: '{content.component_name}-crds' - conditions: kind: ["*"] filename: '{content.component_name}-bundle' + patch: + - conditions: + kind: [CustomResourceDefinition] + patch: + metadata: + annotations: + argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true,Replace=true + generators: kubernetes: