Skip to content

Commit

Permalink
feat(chart): manage CRDs as part of chart
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco committed Mar 22, 2024
1 parent 93cb70a commit 1d03432
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/kargo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
| `rbac.installClusterRoles` | Indicates if `ClusterRoles` should be installed. | `true` |
| `rbac.installClusterRoleBindings` | Indicates if `ClusterRoleBindings` should be installed. | `true` |

### CRDs

| Name | Description | Value |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `crds.install` | Indicates if CRDs should be managed as part of the Helm release. If set to `false`, the CRDs are only installed if they do not already exist. | `true` |

### KubeConfigs

Optionally point to Kubernetes Secrets containing kubeconfig for:
Expand Down
5 changes: 5 additions & 0 deletions charts/kargo/templates/crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if .Values.crds.install -}}
{{- range $path, $bytes := .Files.Glob "crds/*.yaml" }}
{{ $.Files.Get $path }}
{{- end }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/kargo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ rbac:
## @param rbac.installClusterRoleBindings Indicates if `ClusterRoleBindings` should be installed.
installClusterRoleBindings: true

## @section CRDs
crds:
## @param crds.install Indicates if CRDs should be managed as part of the Helm release. If set to `false`, the CRDs are only installed if they do not already exist.
install: true

## @section KubeConfigs
## @descriptionStart
## Optionally point to Kubernetes Secrets containing kubeconfig for:
Expand Down

0 comments on commit 1d03432

Please sign in to comment.