kustomize-plugin-merger icon indicating copy to clipboard operation
kustomize-plugin-merger copied to clipboard

argocd support

Open chris93111 opened this issue 1 year ago • 1 comments

Hi

This plugin can work with argocd ?

the krm function use docker for build manifests with embedded bin, but can't use docker in argocd

any suggestion ?

Thanks

chris93111 avatar Feb 07 '24 16:02 chris93111

Hi @chris93111 the plugin is also available as an Exec KRM function and can be downloaded from the release page https://github.com/DevOpsHiveHQ/kustomize-plugin-merger/releases

You will find the Exec KRM function section in all examples, but it's commented. E.g. https://github.com/DevOpsHiveHQ/kustomize-plugin-merger/tree/d61661b/examples/manifest-lists-without-schema#manifest

All that you need to do is download the binary to the ArgoCD system and it will work:

apiVersion: generators.kustomize.devopshive.net/v1alpha1
kind: Merger
metadata:
  name: merge
  annotations:
    # Exec KRM functions.
    config.kubernetes.io/function: |
      exec:
        path: kustomize-plugin-merger
spec:
[...]

And the rest under spec is the same.

aabouzaid avatar Feb 11 '24 20:02 aabouzaid

Given the thumb-up, I'm closing this issue because of the solution provided.

aabouzaid avatar Aug 13 '24 22:08 aabouzaid