From 54cc6a22a622cf516d3bab99bd827d88c75d7255 Mon Sep 17 00:00:00 2001 From: Christopher O'Connell <coconnell@bridgephase.com> Date: Wed, 6 Nov 2024 14:37:24 +0000 Subject: [PATCH] Add provider to the helmRepositories spec and set a default value of generic --- chart/templates/helm-repository/helmrepo.yaml | 1 + chart/values.schema.json | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/chart/templates/helm-repository/helmrepo.yaml b/chart/templates/helm-repository/helmrepo.yaml index 57f076058d..4ab69a335c 100644 --- a/chart/templates/helm-repository/helmrepo.yaml +++ b/chart/templates/helm-repository/helmrepo.yaml @@ -5,6 +5,7 @@ metadata: name: {{ .name }} namespace: {{ $.Release.Namespace }} spec: + provider: {{ $.Values.flux.provider | default "generic" }} interval: {{ $.Values.flux.interval }} type: {{ .type | default "default" }} url: {{ .repository }} diff --git a/chart/values.schema.json b/chart/values.schema.json index 492af7b1b0..b3a51f10e0 100644 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -1327,6 +1327,15 @@ "existingSecret": { "type": "string" }, + "provider": { + "type": "string", + "enum": [ + "generic", + "aws", + "azure", + "gcp" + ] + }, "type": { "type": "string", "enum": [ @@ -1358,6 +1367,18 @@ "username", "password" ] + }, + { + "required": [ + "provider" + ], + "not": { + "properties": { + "provider": { + "const": "generic" + } + } + } } ], "required": [ -- GitLab