This repository gives a quick overview of Open Cluster Management extension.
It contains some basic samples regarding some Open Cluster Management resources like:
- ManagedCluster
- ManagedClusterSet
- KlusterletAddonConfig
- PlacementRuleCreate
There are some examples of OpenShift Hive(hive.openshift.io
) resources as well since they're related to cluster management too
- ClusterDeployment
- MachinePool
- InstallConfig (equivalent of
oc create secret generic mycluster-install-config --from-file=install-config.yaml=./install-config.yaml
)
- A Kubernetes or Red Hat OpenShift Cluster
- Red Hat Advanced Cluster Management for Kubernetes installed on cluster
$ mvn clean install
Once you've setup your environment, you can run any sample using maven exec plugin. Here is an example:
$ mvn exec:java -Dexec.mainClass=io.fabric8.openshift.api.demo.InstallConfigSecretDemo