UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 54cc6a22 authored by Christopher O'Connell's avatar Christopher O'Connell Committed by Michael Martin
Browse files

Add provider to the helmRepositories spec and set a default value of generic

parent b6e1fa29
No related branches found
No related tags found
1 merge request!5252Add provider to the helmRepositories spec and set a default value of generic
...@@ -5,6 +5,7 @@ metadata: ...@@ -5,6 +5,7 @@ metadata:
name: {{ .name }} name: {{ .name }}
namespace: {{ $.Release.Namespace }} namespace: {{ $.Release.Namespace }}
spec: spec:
provider: {{ $.Values.flux.provider | default "generic" }}
interval: {{ $.Values.flux.interval }} interval: {{ $.Values.flux.interval }}
type: {{ .type | default "default" }} type: {{ .type | default "default" }}
url: {{ .repository }} url: {{ .repository }}
......
...@@ -1327,6 +1327,15 @@ ...@@ -1327,6 +1327,15 @@
"existingSecret": { "existingSecret": {
"type": "string" "type": "string"
}, },
"provider": {
"type": "string",
"enum": [
"generic",
"aws",
"azure",
"gcp"
]
},
"type": { "type": {
"type": "string", "type": "string",
"enum": [ "enum": [
...@@ -1358,6 +1367,18 @@ ...@@ -1358,6 +1367,18 @@
"username", "username",
"password" "password"
] ]
},
{
"required": [
"provider"
],
"not": {
"properties": {
"provider": {
"const": "generic"
}
}
}
} }
], ],
"required": [ "required": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment