Skip to content

Commit a562177

Browse files
pbuskogeorgethebeatle
authored andcommitted
Allow skipping CRDs installation
1 parent 853a7cb commit a562177

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

helm/korifi/templates/components.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
{{- end }}
77
{{- end }}
88

9-
{{- range $path, $_ := .Files.Glob "controllers/**/*.yaml" }}
9+
{{- if .Values.crds.include }}
10+
{{- range $path, $_ := .Files.Glob "controllers/crds/*.yaml" }}
11+
---
12+
{{ tpl ($.Files.Get $path) $ctx }}
13+
{{- end }}
14+
{{- end }}
15+
16+
{{- range $path, $_ := .Files.Glob "controllers/cf_roles/*.yaml" }}
1017
---
1118
{{ tpl ($.Files.Get $path) $ctx }}
1219
{{- end }}

helm/korifi/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@
8686
},
8787
"required": ["memoryMB", "diskMB", "buildCacheMB"]
8888
},
89+
"crds": {
90+
"type": "object",
91+
"required": ["include"],
92+
"properties": {
93+
"include": {
94+
"description": "Install CRDs as part of the Helm installation.",
95+
"type": "boolean"
96+
}
97+
}
98+
},
8999
"api": {
90100
"properties": {
91101
"include": {

helm/korifi/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ stagingRequirements:
1919
diskMB: 0
2020
buildCacheMB: 2048
2121

22+
crds:
23+
include: true
24+
2225
api:
2326
include: true
2427

0 commit comments

Comments
 (0)