helm-external-val icon indicating copy to clipboard operation
helm-external-val copied to clipboard

examples for argocd

Open chicco785 opened this issue 3 years ago • 3 comments

I could not find any example or documentation of how to use the plugin from an argocd application. Thx

chicco785 avatar Oct 07 '22 15:10 chicco785

heh good call, I described how to install it and some caveat but didn't actually show how to reference it. I'll whip up something 👍

kuuji avatar Oct 12 '22 02:10 kuuji

@chicco785 until I get the example properly in the readme here's how you can use it

Note the valueFiles under the helm section. This will fetch a config map named go-fun-values in the kuuji namespace and use the content as values.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: gofun
  namespace: argocd
spec:
  project: kuuji
  source:
    repoURL: https://charts.devspace.sh
    targetRevision: 0.8.4
    chart: component-chart
    # helm specific config
    helm:
      releaseName: gofun
      valueFiles:
      - cm://kuuji/go-fun-values
      values: |
        containers:
        - image: ghcr.io/kuuji/project/app:GaGhtgD
          livenessProbe:
            httpGet:
              path: /
              port: 8080
          readinessProbe:
            httpGet:
              path: /
              port: 8080

kuuji avatar Oct 12 '22 03:10 kuuji

It's throwing this error:

error resolving value file path: the URL scheme 'cm' is not allowed

loganrobertclemons avatar Nov 25 '24 14:11 loganrobertclemons