Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples for argocd #5

Open
chicco785 opened this issue Oct 7, 2022 · 3 comments
Open

examples for argocd #5

chicco785 opened this issue Oct 7, 2022 · 3 comments

Comments

@chicco785
Copy link

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

@kuuji
Copy link
Owner

kuuji commented Oct 12, 2022

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
Copy link
Owner

kuuji commented Oct 12, 2022

@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

@loganrobertclemons
Copy link

It's throwing this error:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants