Skip to main content

Helm

Config

package main

import (
"stakpak.dev/devx/v1"
"stakpak.dev/devx/v1/traits"
)

stack: v1.#Stack & {
components: {
cowsay: {
traits.#Helm
helm: {
k8s: version: minor: 19
url: "stakpak.dev"
chart: "guku"
version: "v1"
namespace: "somethingelse"
values: {
bla: 123
}
}
}
}
}

Build

devx build dev
devx build prod

Result

/build/dev/kubernetes/cowsay-application.yml
metadata:
name: cowsay
namespace: somethingelse
finalizers:
- resources-finalizer.argocd.argoproj.io
apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
source:
repoURL: stakpak.dev
targetRevision: v1
helm:
releaseName: cowsay
values: |
bla: 123
chart: guku
destination:
namespace: somethingelse
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5