Skip to content

Commit

Permalink
Allow skipping CRDs installation
Browse files Browse the repository at this point in the history
  • Loading branch information
pbusko authored and georgethebeatle committed Nov 26, 2024
1 parent 853a7cb commit a562177
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 8 additions & 1 deletion helm/korifi/templates/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
{{- end }}
{{- end }}

{{- range $path, $_ := .Files.Glob "controllers/**/*.yaml" }}
{{- if .Values.crds.include }}
{{- range $path, $_ := .Files.Glob "controllers/crds/*.yaml" }}
---
{{ tpl ($.Files.Get $path) $ctx }}
{{- end }}
{{- end }}

{{- range $path, $_ := .Files.Glob "controllers/cf_roles/*.yaml" }}
---
{{ tpl ($.Files.Get $path) $ctx }}
{{- end }}
Expand Down
10 changes: 10 additions & 0 deletions helm/korifi/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@
},
"required": ["memoryMB", "diskMB", "buildCacheMB"]
},
"crds": {
"type": "object",
"required": ["include"],
"properties": {
"include": {
"description": "Install CRDs as part of the Helm installation.",
"type": "boolean"
}
}
},
"api": {
"properties": {
"include": {
Expand Down
3 changes: 3 additions & 0 deletions helm/korifi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ stagingRequirements:
diskMB: 0
buildCacheMB: 2048

crds:
include: true

api:
include: true

Expand Down

0 comments on commit a562177

Please sign in to comment.