Skip to content

Commit

Permalink
feat(helm-chart): Add ability to deploy extra manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilchhofer committed Jul 12, 2023
1 parent fbb1fb9 commit ca498cc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/nebraska/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sources:
maintainers:
- name: kinvolk
url: https://kinvolk.io/
version: 1.0.0
version: 1.1.0
appVersion: "2.8.0"

dependencies:
Expand Down
7 changes: 4 additions & 3 deletions charts/nebraska/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ $ helm install my-nebraska nebraska/nebraska

### Global parameters

| Parameter | Description | Default |
|---------------------------|------------------------------|---------|
| `global.imageRegistry` | Global Container image registry | `nil` |
| Parameter | Description | Default |
|---------------------------|---------------------------------------------------------------------------------------|---------|
| `global.imageRegistry` | Global Container image registry | `nil` |
| `extraObjects` | List of extra manifests to deploy. Will be passed through `tpl` to support templating | `[]` |

### Nebraska parameters

Expand Down
4 changes: 4 additions & 0 deletions charts/nebraska/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl (toYaml .) $ }}
{{ end }}
17 changes: 17 additions & 0 deletions charts/nebraska/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,20 @@ postgresql:
serviceAccount:
create: true
automountServiceAccountToken: false

extraObjects: []
# - apiVersion: external-secrets.io/v1beta1
# kind: ExternalSecret
# metadata:
# name: my-external-secret
# namespace: '{{ .Release.Namespace }}'
# spec:
# secretStoreRef:
# kind: ClusterSecretStore
# name: my-secret-store
# target:
# name: my-kubernetes-secret
# data:
# - secretKey: secretKey
# remoteRef:
# key: /path/to/my-secret

0 comments on commit ca498cc

Please sign in to comment.