github.com/argoproj-labs/argocd-operator@v0.10.0/docs/usage/config_management_2.0.md (about)

     1  # Plugins
     2  
     3  See the [upstream documentation](https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/#configure-plugin-via-sidecar) for more information.
     4  
     5  Plugin sidecare containers can be added to the repo server using the `ArgoCD` custom resource.
     6  If you want to specify the ConfigManagementPlugin manifest by specifying a config map,
     7  the config map should be specified separately.
     8  
     9  ```yaml
    10  apiVersion: v1
    11  kind: ConfigMap
    12  metadata:
    13    name: cmp-plugin
    14  data:
    15    plugin.yaml: |
    16      apiVersion: argoproj.io/v1alpha1
    17      kind: ConfigManagementPlugin
    18      metadata:
    19        name: cmp-plugin
    20      spec:
    21        version: v1.0
    22        generate:
    23          command: [sh, -c, 'echo "{\"kind\": \"ConfigMap\", \"apiVersion\": \"v1\", \"metadata\": { \"name\": \"$ARGOCD_APP_NAME\", \"namespace\": \"$ARGOCD_APP_NAMESPACE\", \"annotations\": {\"Foo\": \"$FOO\", \"Bar\": \"baz\"}}}"']
    24        discover:
    25          find:
    26            command: [sh, -c, 'echo "FOUND"; exit 0']
    27        allowConcurrency: true
    28        lockRepo: true
    29  ---
    30  apiVersion: argoproj.io/v1alpha1
    31  kind: ArgoCD
    32  metadata:
    33    name: example-argocd
    34  spec:
    35    server:
    36      route:
    37        enabled: true
    38    repo:
    39      sidecarContainers:
    40        - name: cmp
    41          command: [/var/run/argocd/argocd-cmp-server]
    42          image: busybox
    43          securityContext:
    44            runAsNonRoot: true
    45            runAsUser: 999
    46          volumeMounts:
    47            - mountPath: /var/run/argocd
    48              name: var-files
    49            - mountPath: /home/argocd/cmp-server/plugins
    50              name: plugins
    51            - mountPath: /tmp
    52              name: tmp
    53            - mountPath: /home/argocd/cmp-server/config/plugin.yaml
    54              subPath: plugin.yaml
    55              name: cmp-plugin
    56      volumes:
    57        - configMap:
    58            name: cmp-plugin
    59          name: cmp-plugin
    60  ```