Skip to content

Commit e287a29

Browse files
authored
Update 02-gitops-basics.adoc
Show application from file instead of hard-coded so it stays up to date.
1 parent 80b85f4 commit e287a29

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

content/modules/ROOT/pages/02-gitops-basics.adoc

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,7 @@ cat ./bgd-app.yaml
160160
.link:https://github.com/OpenShiftDemos/openshift-gitops-workshop/blob/{gitops_revision}/content/modules/ROOT/examples/bgd-app.yaml[bgd-app.yaml,window="_blank"]
161161
[source,yaml,subs="+macros,attributes+"]
162162
----
163-
apiVersion: argoproj.io/v1alpha1
164-
kind: Application
165-
metadata:
166-
name: bgd-app
167-
spec:
168-
destination:
169-
namespace: {user}-bgd
170-
server: https://kubernetes.default.svc <1>
171-
project: default <2>
172-
source: <3>
173-
path: documentation/modules/ROOT/examples/bgd
174-
repoURL: https://github.com/OpenShiftDemos/openshift-gitops-workshop
175-
targetRevision: master
176-
syncPolicy: <4>
177-
automated:
178-
prune: true
179-
selfHeal: false
163+
include::ROOT:example$bgd-app.yaml[]
180164
----
181165
<1> The destination server is API endpoint for the cluster where Argo CD is
182166
running -- in this case, using the locally-resolveable URL for the cluster

0 commit comments

Comments
 (0)