Skip to content

Commit aec30cc

Browse files
authored
Merge pull request #327 from bcgov/argocd_helm_example
Update argocd helm sample app
2 parents e466820 + f175d0d commit aec30cc

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/docs/automation-and-resiliency/argo-cd-usage.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,26 +137,31 @@ If using a package in the Docker Helm OCI repository (registry-1.docker.io), you
137137
* Source repository type: `HELM`
138138
* Chart name: Enter as group/project, such as `bitnamicharts/mariadb`
139139
* Chart version: In the field adjacent to the chart name, enter the version number, such as `20.2.0`
140-
* Helm settings: Select a Values file or enter individual values
140+
* Helm settings: Select a standard values file or enter individual values. To use your own values file, see the example below of a multi-source application.
141141

142-
To create an ArgoCD App using a manifest, use the following example as a guide.
142+
To use a values file from your own GitOps repo, you will have to create the ArgoCD App using a manifest, because the UI does not currently support that. In this example, the second source creates a reference used in the first source for the values file.
143143
```
144144
apiVersion: argoproj.io/v1alpha1
145145
kind: Application
146146
metadata:
147-
name: mariadb
147+
name: mariadb-helm
148+
namespace: abc123-dev
148149
spec:
149150
destination:
150151
namespace: abc123-dev
151152
server: https://kubernetes.default.svc
152153
project: abc123
153-
source:
154-
chart: bitnamicharts/mariadb
155-
helm:
156-
valueFiles:
157-
- charts/common/values.yaml
158-
repoURL: artifacts.developer.gov.bc.ca/docker-helm-oci-remote
159-
targetRevision: 20.2.0
154+
sources:
155+
- chart: bitnamicharts/mariadb
156+
helm:
157+
releaseName: mariadb
158+
valueFiles:
159+
- $values/mariadb/values-dev.yaml
160+
repoURL: artifacts.developer.gov.bc.ca/docker-helm-oci-remote
161+
targetRevision: 20.2.0
162+
- ref: values
163+
repoURL: https://github.com/bcgov-c/tenant-gitops-abc123.git
164+
targetRevision: main
160165
```
161166

162167
#### Kustomize

0 commit comments

Comments
 (0)