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

Add this plugin to the argo-cd chart? #2

Open
batazor opened this issue Mar 25, 2024 · 3 comments
Open

Add this plugin to the argo-cd chart? #2

batazor opened this issue Mar 25, 2024 · 3 comments

Comments

@batazor
Copy link

batazor commented Mar 25, 2024

The article doesn't make it very clear exactly how we can add this plugin to our helm values.yaml file.

Maybe we should add it as an option to the chart right away?
Or add such an example to this repository

@Marvin9
Copy link
Collaborator

Marvin9 commented Mar 26, 2024

I can add example to modify helm values.

@batazor
Copy link
Author

batazor commented Mar 26, 2024

@Marvin9 That would be awesome!

@Marvin9
Copy link
Collaborator

Marvin9 commented Mar 27, 2024

@batazor I will update repository but here is example of values.yaml

repoServer:
  extraContainers:
    - name: cdk8s-go # modify
      command:
        - /var/run/argocd/argocd-cmp-server
      image: 'ghcr.io/akuity/cdk8s-cmp-go:latest' # modify
      securityContext:
        runAsNonRoot: true
        runAsUser: 999
      volumeMounts:
        - mountPath: /var/run/argocd
          name: var-files
        - mountPath: /home/argocd/cmp-server/plugins
          name: plugins
        - mountPath: /home/argocd/cmp-server/config/plugin.yaml
          subPath: plugin.yaml
          name: argocd-cmp-cm
        - mountPath: /tmp
          name: cmp-tmp
  volumes:
    - name: argocd-cmp-cm
      configMap:
        name: argocd-cmp-cm
        items:
          - key: cdk8s-go.yaml # modify
            path: plugin.yaml
    - name: cmp-tmp
      emptyDir: {}
configs:
  cmp:
    create: true
    plugins:
      cdk8s-go: # modify
        init:
          command:
            - cdk8s
          args:
            - import
        generate:
          command:
            - cdk8s
            - synth
          args:
            - '--stdout'
        discover:
          fileName: '*.go'

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

2 participants