[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

siteconfig-generator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

SiteConfig generator

The siteconfig-generator library makes cluster deployment easier by generating the following CRs based on a SiteConfig CR instance;

  • AgentClusterInstall
  • ClusterDeployment
  • NMStateConfig
  • KlusterletAddonConfig
  • ManagedCluster
  • InfraEnv
  • BareMetalHost
  • HostFirmwareSettings
  • ConfigMap for extra-manifest configurations

The SiteConfig is a Custom Resource created to facilitate the creation of those CRs and avoid repeating the configuration names.

Build and execute

  • Run the following command to build siteconfig-generator binary
    $ make build
  • Run the following command to execute the unit test
    $ make test
  • Run the following command to execute siteconfig-generator binary with a SiteConfig example
    $ ./siteconfig-generator -manifestPath ../source-crs/extra-manifest ../siteconfig-generator-kustomize-plugin/testSiteConfig/site2-sno-du.yaml

Note: the manifestPath option is to set the predefined extra-manifest path exist under ../source-crs/extra-manifest