|
1 | | -= Enabling the Argo CD plugin |
2 | | - |
3 | | -You can use the Argo CD plugin to visualize the Continuous Delivery (CD) workflows in OpenShift GitOps. This plugin provides a visual overview of the status of the application, deployment details, commit message, author of the commit, container image promoted to environment and deployment history. |
4 | | - |
5 | | -.Prerequisites |
6 | | - |
7 | | -* Add Argo CD instance information to your `app-config.yaml` configmap as shown in the following example: |
8 | | -
|
9 | | -+ |
10 | | -[source,yaml] |
11 | | ----- |
12 | | -argocd: |
13 | | - appLocatorMethods: |
14 | | - - type: 'config' |
15 | | - instances: |
16 | | - - name: argoInstance1 |
17 | | - url: https://argoInstance1.com |
18 | | - username: ${ARGOCD_USERNAME} |
19 | | - password: ${ARGOCD_PASSWORD} |
20 | | - - name: argoInstance2 |
21 | | - url: https://argoInstance2.com |
22 | | - username: ${ARGOCD_USERNAME} |
23 | | - password: ${ARGOCD_PASSWORD} |
24 | | ----- |
25 | | -+ |
26 | | -[NOTE] |
27 | | -==== |
28 | | -Avoid using a trailing slash in the `url`, as it might cause unexpected behavior. |
29 | | -==== |
30 | | - |
31 | | -* Add the following annotation to the entity `catalog-info.yaml` file to identify the Argo CD applications. |
32 | | -
|
33 | | -+ |
34 | | -[source,yaml] |
35 | | ----- |
36 | | -annotations: |
37 | | - ... |
38 | | - # The label that Argo CD uses to fetch all the applications. The format to be used is label.key=label.value. For example, rht-gitops.com/janus-argocd=quarkus-app. |
39 | | -
|
40 | | - argocd/app-selector: '${ARGOCD_LABEL_SELECTOR}' |
41 | | ----- |
42 | | - |
43 | | -* (Optional) Add the following annotation to the entity’s `catalog-info.yaml` file to switch between Argo CD instances as shown in the following example: |
44 | | -
|
45 | | -+ |
46 | | -[source,yaml] |
47 | | ----- |
48 | | - annotations: |
49 | | - ... |
50 | | - # The Argo CD instance name used in `app-config.yaml`. |
51 | | -
|
52 | | - argocd/instance-name: '${ARGOCD_INSTANCE}' |
53 | | ----- |
54 | | - |
55 | | -+ |
56 | | -[NOTE] |
57 | | -==== |
58 | | -If you do not set this annotation, the Argo CD plugin defaults to the first Argo CD instance configured in `app-config.yaml`. |
59 | | -==== |
60 | | - |
61 | | -.Procedure |
62 | | - |
63 | | -. Add the following to your dynamic-plugins ConfigMap to enable the Argo CD plugin. |
64 | | -+ |
65 | | -[source,yaml] |
66 | | ----- |
67 | | -global: |
68 | | - dynamic: |
69 | | - includes: |
70 | | - - dynamic-plugins.default.yaml |
71 | | - plugins: |
72 | | - - package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic |
73 | | - disabled: false |
74 | | - - package: ./dynamic-plugins/dist/backstage-community-plugin-redhat-argocd |
75 | | - disabled: false |
76 | | ----- |
77 | | - |
78 | | -== Enabling Argo CD Rollouts |
| 1 | +:_mod-docs-content-type: PROCEDURE |
| 2 | +[id="enabling-argo-cd-rollouts_{context}"] |
| 3 | += Enabling Argo CD Rollouts |
79 | 4 |
|
80 | 5 | The optional Argo CD Rollouts feature enhances Kubernetes by providing advanced deployment strategies, such as blue-green and canary deployments, for your applications. When integrated into the backstage Kubernetes plugin, it allows developers and operations teams to visualize and manage Argo CD Rollouts seamlessly within the Backstage interface. |
81 | 6 |
|
|
0 commit comments