github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-0017_validate_cmp/01-cmp2.yaml (about)

     1  apiVersion: v1
     2  kind: Namespace
     3  metadata:
     4    name: test-1-17-custom
     5  ---
     6  apiVersion: v1
     7  kind: ConfigMap
     8  metadata:
     9    name: cmp-plugin
    10    namespace: test-1-17-custom
    11  data:
    12    plugin.yaml: |
    13      apiVersion: argoproj.io/v1alpha1
    14      kind: ConfigManagementPlugin
    15      metadata:
    16        name: cmp-plugin
    17      spec:
    18        version: v1.0
    19        generate:
    20          command: [sh, -c, 'echo "{\"kind\": \"ConfigMap\", \"apiVersion\": \"v1\", \"metadata\": { \"name\": \"$ARGOCD_APP_NAME\", \"namespace\": \"$ARGOCD_APP_NAMESPACE\", \"annotations\": {\"Foo\": \"$ARGOCD_ENV_FOO\", \"Bar\": \"baz\"}}}"']
    21        discover:
    22          find:
    23            command: [sh, -c, 'echo "FOUND"; exit 0']
    24        allowConcurrency: true
    25        lockRepo: true
    26  ---
    27  apiVersion: argoproj.io/v1alpha1
    28  kind: ArgoCD
    29  metadata:
    30    name: example-argocd
    31    namespace: test-1-17-custom
    32  spec:
    33    server:
    34      route:
    35        enabled: true
    36    repo:
    37      sidecarContainers:
    38        - name: cmp
    39          command: [/var/run/argocd/argocd-cmp-server]
    40          image: busybox
    41          securityContext:
    42            runAsNonRoot: true
    43            runAsUser: 999
    44          volumeMounts:
    45            - mountPath: /var/run/argocd
    46              name: var-files
    47            - mountPath: /home/argocd/cmp-server/plugins
    48              name: plugins
    49            - mountPath: /tmp
    50              name: tmp
    51            - mountPath: /home/argocd/cmp-server/config/plugin.yaml
    52              subPath: plugin.yaml
    53              name: cmp-plugin
    54      volumes:
    55        - configMap:
    56            name: cmp-plugin
    57          name: cmp-plugin
    58  ---
    59  apiVersion: argoproj.io/v1alpha1
    60  kind: Application
    61  metadata:
    62    name: guestbook
    63    namespace: test-1-17-custom
    64  spec:
    65    project: default
    66    source:
    67      repoURL: 'https://github.com/argoproj/argocd-example-apps.git'
    68      path: guestbook
    69      targetRevision: HEAD
    70      plugin:
    71        env:
    72          - name: FOO
    73            value: myfoo
    74    destination:
    75      server: 'https://kubernetes.default.svc'
    76      namespace: test-1-17-custom
    77    syncPolicy:
    78      automated: {}