The Policy Generator constructs Open Cluster Management policies from Kubernetes YAML files provided
through a PolicyGenerator Custom Resource. The Policy Generator is a binary compiled for use as a
kustomize exec plugin.
For more about Open Cluster Management and its Policy Framework:
Build the plugin binary (only needed once or to update the plugin):
make build
NOTE: This will default to placing the binary in ${HOME}/.config/kustomize/plugin/. You can
change this by exporting KUSTOMIZE_PLUGIN_HOME to a different path.
Configuration
Create a kustomization.yaml file that points to PolicyGenerator manifest(s), with any
additional desired patches or customizations (see
examples/policyGenerator.yaml for an example):