Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Kind is the TypeMeta.Kind for the OperatorConfig. Kind = "MachineAPIOperatorConfig" // APIVersion is the TypeMeta.APIVersion for the OperatorConfig. APIVersion = "v1" )
Variables ¶
This section is empty.
Functions ¶
func Manifests ¶
func Manifests(config *OperatorConfig, data []byte) ([]byte, error)
Manifests takes the config object that contains the templated value, and uses that to render the templated manifest. 'config' must be non-nil, 'data' is the rawdata of a manifest file.
func PopulateTemplate ¶
func PopulateTemplate(config *OperatorConfig, path string) ([]byte, error)
PopulateTemplate takes the config object, and uses that to render the templated manifest
Types ¶
type AWSConfig ¶
type AWSConfig struct { ClusterName string `json:"clusterName"` ClusterID string `json:"clusterID"` Region string `json:"region"` AvailabilityZone string `json:"availabilityZone"` Image string `json:"image"` ReleaseChannel string `json:"releaseChannel"` ContainerLinuxVersion string `json:"containerLinuxVersion"` Replicas string `json:"replicas"` WithCreds bool `json:"withCreds"` }
AWSConfig contains specific config for AWS
type Images ¶
type Images struct { ClusterAPIControllerAWS string `json:"clusterAPIControllerAWS"` ClusterAPIControllerOpenStack string `json:"clusterAPIControllerOpenStack"` ClusterAPIControllerLibvirt string `json:"clusterAPIControllerLibvirt"` ClusterAPIControllerManagerAWS string `json:"clusterAPIControllerManagerAWS"` ClusterAPIControllerManagerOpenStack string `json:"clusterAPIControllerManagerOpenStack"` ClusterAPIControllerManagerLibvirt string `json:"clusterAPIControllerManagerLibvirt"` ClusterAPIServer string `json:"clusterAPIServer"` Etcd string `json:"Etcd"` }
Images allows build systems to inject images for MAO components.
type LibvirtConfig ¶
type LibvirtConfig struct { URI string `json:"uri"` NetworkName string `json:"networkName"` IPRange string `json:"ipRange"` ClusterName string `json:"clusterName"` Replicas string `json:"replicas"` }
LibvirtConfig contains specific config for Libvirt
type OpenStackConfig ¶
type OpenStackConfig struct { }
type OperatorConfig ¶
type OperatorConfig struct { metav1.TypeMeta `json:",inline"` TargetNamespace string `json:"targetNamespace"` APIServiceCA string `json:"apiServiceCA"` Provider string `json:"provider"` AWS *AWSConfig `json:"aws"` OpenStack *OpenStackConfig `json:"openstack,omitempty"` Libvirt *LibvirtConfig `json:"libvirt"` Images *Images `json:"images"` }
OperatorConfig contains configuration for MAO
Click to show internal directories.
Click to hide internal directories.