Documentation ¶
Index ¶
- Constants
- func ApplyClusterOperator(client osclientsetv1.ClusterOperatorsGetter, ...) (*osconfigv1.ClusterOperator, bool, error)
- func PopulateTemplate(config *OperatorConfig, path string) ([]byte, error)
- type Controllers
- type Images
- type InstallConfig
- type InstallPlatform
- type Operator
- type OperatorConfig
- type Provider
- type StatusReason
Constants ¶
const ( // ClusterConfigNamespace is the namespace containing the cluster config ClusterConfigNamespace = "kube-system" // ClusterConfigName is the name of the cluster config configmap ClusterConfigName = "cluster-config-v1" // InstallConfigKey is the key in the cluster config configmap containing yaml installConfig data InstallConfigKey = "install-config" // AWSPlatformType is used to install on AWS AWSProvider = Provider("aws") // LibvirtPlatformType is used to install of libvirt LibvirtProvider = Provider("libvirt") // OpenStackPlatformType is used to install on OpenStack OpenStackProvider = Provider("openstack") )
Variables ¶
This section is empty.
Functions ¶
func ApplyClusterOperator ¶ added in v0.2.0
func ApplyClusterOperator(client osclientsetv1.ClusterOperatorsGetter, required *osconfigv1.ClusterOperator) (*osconfigv1.ClusterOperator, bool, error)
ApplyClusterOperator applies the required ClusterOperator
func PopulateTemplate ¶ added in v0.2.0
func PopulateTemplate(config *OperatorConfig, path string) ([]byte, error)
PopulateTemplate receives a template file path and renders its content populated with the config
Types ¶
type Controllers ¶ added in v0.2.0
type Images ¶ added in v0.2.0
type Images struct { MachineAPIOperator string `json:"machineAPIOperator"` ClusterAPIControllerAWS string `json:"clusterAPIControllerAWS"` ClusterAPIControllerOpenStack string `json:"clusterAPIControllerOpenStack"` ClusterAPIControllerLibvirt string `json:"clusterAPIControllerLibvirt"` }
Images allows build systems to inject images for MAO components
type InstallConfig ¶ added in v0.2.0
type InstallConfig struct {
InstallPlatform `json:"platform"`
}
InstallConfig contains the mao relevant config coming from the install config, i.e provider
type InstallPlatform ¶ added in v0.2.0
type InstallPlatform struct { // AWS is the configuration used when running on AWS AWS interface{} `json:"aws,omitempty"` // Libvirt is the configuration used when running on libvirt Libvirt interface{} `json:"libvirt,omitempty"` // OpenStack is the configuration used when running on OpenStack OpenStack interface{} `json:"openstack,omitempty"` }
InstallPlatform is the configuration for the specific platform upon which to perform the installation. Only one of the platform configuration should be set
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator defines machine api operator.
func New ¶
func New( namespace, name string, imagesFile string, config string, serviceAccountInfomer coreinformersv1.ServiceAccountInformer, deployInformer appsinformersv1.DeploymentInformer, clusterRoleInformer rbacinformersv1.ClusterRoleInformer, clusterRoleBindingInformer rbacinformersv1.ClusterRoleBindingInformer, kubeClient kubernetes.Interface, osClient osclientset.Interface, ) *Operator
New returns a new machine config operator.
type OperatorConfig ¶ added in v0.2.0
type OperatorConfig struct { TargetNamespace string `json:"targetNamespace"` Controllers Controllers }
OperatorConfig contains configuration for MAO
type StatusReason ¶ added in v0.2.0
type StatusReason string
StatusReason is a MixedCaps string representing the reason for a status condition change.
const ( ReasonEmpty StatusReason = "" ReasonSyncing StatusReason = "SyncingResources" ReasonSyncFailed StatusReason = "SyncingFailed" )
The default set of status change reasons.