Skip to content

Commit

Permalink
feat: deploy dgraph via appset (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Nov 29, 2024
1 parent 1828f0d commit 0832c7d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 51 deletions.
35 changes: 0 additions & 35 deletions apps/dgraph/kustomization.yaml

This file was deleted.

51 changes: 35 additions & 16 deletions bootstrap/appset-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,26 @@ spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- matrix:
generators:
- git:
repoURL: https://github.com/gregkonush/lab.git
revision: main
files:
- path: bootstrap/appset-values.yaml
- list:
elementsYaml: "{{ .apps | toJson }}"
- list:
elements:
- name: spark
namespace: spark
repoUrl: registry-1.docker.io/bitnamicharts
chart: spark
version: 9.2.14
releaseName: spark
- name: dgraph
namespace: dgraph
repoUrl: https://charts.dgraph.io
chart: dgraph
version: 24.0.5
releaseName: dgraph
customValues: true
valuesObject:
zero:
persistence:
storageClass: longhorn
size: 20Gi
template:
metadata:
name: "{{.name}}"
Expand All @@ -33,10 +44,18 @@ spec:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
sources:
- repoURL: "{{.repoUrl}}"
chart: "{{.chart}}"
targetRevision: "{{.version}}"
helm:
releaseName: "{{.releaseName}}"
skipCrds: false
source:
repoURL: "{{.repoUrl}}"
chart: "{{.chart}}"
targetRevision: "{{.version}}"
helm:
releaseName: "{{.releaseName}}"
skipCrds: false
templatePatch: |
{{- if .customValues }}
spec:
source:
helm:
valuesObject:
{{ .valuesObject }}
{{- end }}

0 comments on commit 0832c7d

Please sign in to comment.