The ztp-site-generator container image contains the kustomize plugin binaries SiteConfig and PolicyGenTemplate under /kustomize/plugin directory. AND contains the mandatory patch files to configure the hub cluster for ztp deployment. The files exist under following directories :
- /home/ztp/source-crs: contain the source CRs files that SiteConfig and PolicyGenTemplate use to generate the custom resources.
- /home/ztp/argocd: check the argocd readme for more info on how to configure ArgoCD in the hub cluster.
- Run
$make build
to build ztp-site-generator container image.
Run $ make export
to export the ztp-site-generator container image directories.
$ tree out/ -L 2
out/
├── exportkustomize.sh
├── kustomize
│ └── plugin
└── ztp
├── argocd
├── extra-manifest
└── source-crs
The Red Hat Prow infractructure automatically pushes the head of this master branch to quay.io/openshift-kni/ztp-site-generator:latest
The argocd deployment files refer to the upstream container images by default. But downstream builds (or other special-purpose builds) need to override that internal reference. Setting the IMAGE_REF build argument will patch any internal references to that argument's value verbatim.
Example:
make build IMAGE_REF=quay.io/personal/ztp-site-generator:latest