Skip to content

Commit

Permalink
feat: add extraObjects (#262)
Browse files Browse the repository at this point in the history
* feat: add extraObjects

* chore: bump chart version

---------

Co-authored-by: Kim Gustyr <[email protected]>
  • Loading branch information
danielloader and khvn26 authored Aug 9, 2024
1 parent c38477c commit f28fcbb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.52.0
version: 0.53.0
appVersion: 2.134.1
dependencies:
- name: postgresql
Expand Down
8 changes: 8 additions & 0 deletions charts/flagsmith/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ range .Values.extraObjects }}
---
{{ if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}
15 changes: 15 additions & 0 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,18 @@ _destructiveTests:
resources:
requests:
memory: 1Gi

# -- Array of extra K8s manifests to deploy
## Note: Supports use of custom Helm templates
## Example: Deploying a CloudnativePG Postgres cluster for use with Flagmsith:
extraObjects: []
# - |
# apiVersion: postgresql.cnpg.io/v1
# kind: Cluster
# metadata:
# name: flagsmith
# namespace: {{ .Release.Namespace }}
# spec:
# instances: 3
# storage:
# size: 10Gi

0 comments on commit f28fcbb

Please sign in to comment.