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: modules/ztp-preparing-the-ztp-git-repository-ver-ind.adoc
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,12 @@ This means that the version of {product-title} running on the hub cluster can be
17
17
For each version, create the following resources:
18
18
* `kustomization.yaml` file that explicitly includes the files in that directory
19
19
* `source-crs` directory to contain reference CR configuration files from the `ztp-site-generate` container
20
+
+
21
+
If you want to work with user-provided CRs, you must create a separate directory for them.
20
22
21
-
. In the `/siteconfig` directory, create a subdirectory for each {product-title} version you want to make available. For each version, create at least one directory for reference CRs to be copied from the container. There is no restriction on the naming of directories or on the number of reference directories. If you want to work with user-provided CRs, you must create a separate directory for those.
23
+
. In the `/siteconfig` directory, create a subdirectory for each {product-title} version you want to make available. For each version, create at least one directory for reference CRs to be copied from the container. There is no restriction on the naming of directories or on the number of reference directories. If you want to work with custom manifests, you must create a separate directory for them.
22
24
+
23
-
The following example describes a structure using user-provided CRs for different versions of {product-title}:
25
+
The following example describes a structure using user-provided manifests and CRs for different versions of {product-title}:
24
26
+
25
27
[source,text]
26
28
----
@@ -33,7 +35,9 @@ The following example describes a structure using user-provided CRs for differen
33
35
│ │ ├── helix56-v413.yaml
34
36
│ │ ├── kustomization.yaml <3>
35
37
│ │ ├── ns.yaml
36
-
│ │ └── source-crs/ <4>
38
+
│ │ └── source-crs/ <4>
39
+
│ │ └── reference-crs/ <5>
40
+
│ │ └── custom-crs/ <6>
37
41
│ └── version_4.14 <2>
38
42
│ ├── common-ranGen.yaml
39
43
│ ├── group-du-sno-ranGen.yaml
@@ -42,26 +46,30 @@ The following example describes a structure using user-provided CRs for differen
42
46
│ ├── kustomization.yaml <3>
43
47
│ ├── ns.yaml
44
48
│ └── source-crs/ <4>
49
+
│ └── reference-crs/ <5>
50
+
│ └── custom-crs/ <6>
45
51
└── siteconfig
46
52
├── kustomization.yaml
47
53
├── version_4.13
48
54
│ ├── helix56-v413.yaml
49
55
│ ├── kustomization.yaml
50
-
│ ├── extra-manifest/ <5>
51
-
│ └── custom-manifest/ <6>
56
+
│ ├── extra-manifest/ <7>
57
+
│ └── custom-manifest/ <8>
52
58
└── version_4.14
53
59
├── helix57-v414.yaml
54
60
├── kustomization.yaml
55
-
├── extra-manifest/ <5>
56
-
└── custom-manifest/ <6>
61
+
├── extra-manifest/ <7>
62
+
└── custom-manifest/ <8>
57
63
58
64
----
59
-
<1> Create a top-level `kustomization` yaml file.
65
+
<1> Create a top-level `kustomization` YAML file.
60
66
<2> Create the version-specific directories within the custom `/policygentemplates` directory.
61
67
<3> Create a `kustomization.yaml` file for each version.
62
68
<4> Create a `source-crs` directory for each version to contain reference CRs from the `ztp-site-generate` container.
63
-
<5> Create a directory within the custom `/siteconfig` directory to contain extra manifests from the `ztp-site-generate` container.
64
-
<6> Create a folder to hold user-provided CRs.
69
+
<5> Create the `reference-crs` directory for policy CRs that are extracted from the ZTP container.
70
+
<6> Optional: Create a `custom-crs` directory for user-provided CRs.
71
+
<7> Create a directory within the custom `/siteconfig` directory to contain extra manifests from the `ztp-site-generate` container.
72
+
<8> Create a folder to hold user-provided manifests.
0 commit comments