Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions modules/ztp-adding-new-content-to-gitops-ztp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Perform the following procedure to add new content to the ZTP pipeline.

.Procedure

. Create a subdirectory named `source-crs` in the directory containing the `kustomization.yaml` file for the `PolicyGenTemplate` custom resource (CR).
. Create a subdirectory named `source-crs` in the directory that contains the `kustomization.yaml` file for the `PolicyGenTemplate` custom resource (CR).

. Add your custom CRs to the `source-crs` subdirectory, as shown in the following example:
+
Expand All @@ -35,13 +35,7 @@ example
----
<1> The `source-crs` subdirectory must be in the same directory as the `kustomization.yaml` file.

+
[IMPORTANT]
====
To use your own resources, ensure that the custom CR names differ from the default source CRs provided in the ZTP container.
====

. Update the required `PolicyGenTemplate` CRs to include references to the content you added in the `source-crs/custom-crs` directory, as shown in the following example:
. Update the required `PolicyGenTemplate` CRs to include references to the content you added in the `source-crs/custom-crs` and `source-crs/elasticsearch` directories. For example:
+
[source,yaml]
----
Expand Down Expand Up @@ -104,11 +98,11 @@ spec:
remediationAction: inform
policyName: "group-dev-disable-nic-lldp"
----
<1> Set `fileName` to include the custom CR subdirectory from the `/source-crs` parent, such as `<subdirectory>/<filename>`.
<1> Set the `fileName` field to include the relative path to the file from the `/source-crs` parent directory.

. Commit the `PolicyGenTemplate` change in Git, and then push to the Git repository that is monitored by the GitOps ZTP Argo CD policies application.

. Update the `ClusterGroupUpgrade` CR to include the changed `PolicyGenTemplate` and save it as `cgu-test.yaml`, as shown in the following example:
. Update the `ClusterGroupUpgrade` CR to include the changed `PolicyGenTemplate` and save it as `cgu-test.yaml`. The following example shows a generated `cgu-test.yaml` file.
+
[source,yaml]
----
Expand Down