This is a scaled back version of: https://review.opendev.org/c/airship/treasuremap/+/792837 This PS basically uses kustomize patches to modify the upstream yamls to create the base resources. Currently we manually edit the upstream yamls. The yamls produced by "kubectl kustomize ." are as before. Kpt can be used for syncing to upstream once this issue is resolved: https://github.com/GoogleContainerTools/kpt/issues/517 Change-Id: Idd7a3f4a61a9dae9ec82dd0a604eb371bdbb4ab4
In-place edits to the local copies of upstream Rook Custom Resource examples are not recommended. The upstream examples can be considered an immutable starting point.
Changes to the upstream examples should be made via Kustomize.
Rook Custom Resource Examples:
Upstream: https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/filesystem.yaml Local: cephfs/base/filesystem.yaml Tag: v1.6.3
Upstream: https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/dashboard-external-http.yaml Local: dashboard/base/dashboard-external-http.yaml Tag: v1.6.3
Upstream: https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/pool.yaml Local: pools/base/pool.yaml Tag: v1.6.3
Upstream: https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/csi/rbd/storageclass.yaml Local: storageclasses/block/storageclass.yaml Tag: v1.6.3
Upstream: https://github.com/rook/rook/blob/master/cluster/examples/kubernetes/ceph/csi/cephfs/storageclass.yaml Local: storageclasses/file/storageclass.yaml Tag: v1.6.3
Kustomize Doc:
https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization