mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-27 20:07:19 +00:00
fix: CMPv2 does not allow symlinks to adjacent files in same git repo. Fixes #13342 (#13360) Signed-off-by: Jiacheng Xu <xjcmaxwellcjx@gmail.com>
10 lines
491 B
YAML
10 lines
491 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ConfigManagementPlugin
|
|
metadata:
|
|
name: cmp-fileName
|
|
spec:
|
|
version: v1.0
|
|
generate:
|
|
command: [sh, -c, 'echo "{\"kind\": \"ConfigMap\", \"apiVersion\": \"v1\", \"metadata\": { \"name\": \"$ARGOCD_APP_NAME\", \"namespace\": \"$ARGOCD_APP_NAMESPACE\", \"annotations\": {\"Foo\": \"$FOO\", \"KubeVersion\": \"$KUBE_VERSION\", \"KubeApiVersion\": \"$KUBE_API_VERSIONS\",\"Bar\": \"baz\"}}}"']
|
|
discover:
|
|
fileName: "cmp-fileName/subdir/s*.yaml"
|