You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 101-lab/content/16_templates.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,15 @@ Explore the new file that you just created called `template.yaml`
29
29
30
30
We're now looking to strip unique information generated by OpenShift from the YAML to allow it to be reusable. Search for each of these fields and remove their contents from your `template.yaml` then save it:
31
31
32
-
- annotations
33
-
- status
34
-
- clusterIP
35
-
- clusterIPs
36
-
- generation
37
-
- uid
38
-
- resourceVersion
39
-
- creationTimestamp
40
-
- volumeName
32
+
- annotations:
33
+
- status:
34
+
- clusterIP:
35
+
- clusterIPs:
36
+
- generation:
37
+
- uid:
38
+
- resourceVersion:
39
+
- creationTimestamp:
40
+
- volumeName:
41
41
42
42
There is also [a script](https://github.com/BCDevOps/openshift-wiki/blob/master/docs/ArgoCD/get_ns_resources.sh) you can use to simplify the process of stripping out the auto-generated information from OpenShift in order to make a template.
0 commit comments