Skip to content

Commit eb548fb

Browse files
committed
RHDEVDOCS-6339: Content creation for CMP
Incorporating SME review feedback
1 parent aa10f6a commit eb548fb

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

argocd_instance/argo-cd-cr-component-properties.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ include::modules/gitops-repo-server-properties.adoc[leveloffset=+1]
1717
// Enabling notifications with an Argo CD instance
1818
include::modules/gitops-argo-cd-notification.adoc[leveloffset=+1]
1919

20+
// Enabling Config Management plugins in an Argo CD CR
21+
include::modules/con-enabling-config-management-plugins-argo-cd-cr.adoc[leveloffset=+1]
22+
2023
// NotificationsConfiguration custom resource properties
2124
include::modules/con_notifications-configuration.adoc[leveloffset=+1]
2225

@@ -31,3 +34,5 @@ include::modules/proc_configuring-notificationsconfiguration-crd-by-using-the-oc
3134
== Additional resources
3235
* xref:../argocd_instance/setting-up-argocd-instance.adoc#gitops-argo-cd-installation_setting-up-argocd-instance[Installing a user-defined Argo CD instance]
3336

37+
* link:https://argo-cd.readthedocs.io/en/stable/operator-manual/config-management-plugins/#config-management-plugins[Config Management Plugins]
38+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * argocd_instance/argo-cd-cr-component-properties.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="enabling-config-management-plugins-argocd_{context}"]
7+
= Enabling Config Management Plugins in an Argo CD CR
8+
9+
Argo CD provides support for Helm, Jsonnet, and Kustomize as built-in config management tools. To use a different config management tool, or to enable features not provided by the built-in config management tools, you can use the Config Management Plugin (CMP).
10+
11+
In Argo CD, the CMP is specified as a sidecar container for the Argo CD repo server container. For more information, see "Config Management Plugins".
12+
13+
In the {gitops-title} Operator, you can configure the Config Management plugin as a sidecar container in the Argo CD custom resource (CR). When you configure the sidecar container, you either specify an off-the-shelf or a custom-built container image. If you do not specify an image, the system uses the same image as the repo server for the plugin.
14+
15+
To configure a sidecar container in the {gitops-title} Operator, add the `.spec.repo.sidecarContainers` key in the Argo CD CR.
16+
17+
.Example Config Management Plugin configuration
18+
[source,yaml]
19+
----
20+
apiVersion: argoproj.io/v1alpha1
21+
kind: ArgoCD
22+
metadata:
23+
name: <my_argocd> # <1>
24+
spec:
25+
repo:
26+
sidecarContainers:
27+
- name: <my_cmp> # <2>
28+
command: [/var/run/argocd/argocd-cmp-server]
29+
image: <my_image>
30+
securityContext:
31+
runAsNonRoot: <true>
32+
runAsUser: <999>
33+
volumeMounts: # <3>
34+
- mountPath: /var/run/argocd
35+
name: <var_files>
36+
- mountPath: /home/argocd/cmp-server/plugins
37+
name: plugins
38+
- mountPath: /tmp
39+
name: tmp
40+
- mountPath: /home/argocd/cmp-server/config/plugin.yaml
41+
subPath: <plugin.yaml>
42+
name: <cmp_plugin>
43+
----
44+
<1> Specifies the name of an Argo CD CR instance.
45+
<2> Specifies the name of a sidecar container used in the repo server.
46+
<3> Specifies the name of volume mounts used in the repo server.

0 commit comments

Comments
 (0)