Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderBootstrap ¶
func RenderBootstrap( proxyFile, clusterConfigConfigMapFile, infraFile, networkFile, cloudConfigFile, etcdCAFile, etcdMetricCAFile, rootCAFile, kubeAPIServerServingCA, pullSecretFile string, imgs *Images, destinationDir string, ) error
RenderBootstrap writes to destinationDir static Pods.
Types ¶
type ControllerConfigImages ¶
type ControllerConfigImages struct { Etcd string `json:"etcd"` SetupEtcdEnv string `json:"setupEtcdEnv"` InfraImage string `json:"infraImage"` KubeClientAgent string `json:"kubeClientAgentImage"` }
ControllerConfigImages are image names used to render templates under ./templates/
type Images ¶
type Images struct { RenderConfigImages ControllerConfigImages }
Images contain data derived from what github.com/openshift/installer's bootkube.sh provides. If you want to add a new image, you need to "ratchet" the change as follows:
Add the image here and also a CLI option with a default value Change the installer to pass that arg with the image from the CVO (some time later) Change the option to required and drop the default
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator defines machince config operator.
func New ¶
func New( namespace, name, imagesFile string, mcpInformer mcfginformersv1.MachineConfigPoolInformer, mcInformer mcfginformersv1.MachineConfigInformer, controllerConfigInformer mcfginformersv1.ControllerConfigInformer, serviceAccountInfomer coreinformersv1.ServiceAccountInformer, crdInformer apiextinformersv1beta1.CustomResourceDefinitionInformer, deployInformer appsinformersv1.DeploymentInformer, daemonsetInformer appsinformersv1.DaemonSetInformer, clusterRoleInformer rbacinformersv1.ClusterRoleInformer, clusterRoleBindingInformer rbacinformersv1.ClusterRoleBindingInformer, mcoCmInformer, clusterCmInfomer coreinformersv1.ConfigMapInformer, infraInformer configinformersv1.InfrastructureInformer, networkInformer configinformersv1.NetworkInformer, proxyInformer configinformersv1.ProxyInformer, client mcfgclientset.Interface, kubeClient kubernetes.Interface, apiExtClient apiextclientset.Interface, configClient configclientset.Interface, ) *Operator
New returns a new machine config operator.
type RenderConfigImages ¶
type RenderConfigImages struct { MachineConfigOperator string `json:"machineConfigOperator"` MachineConfigController string `json:"machineConfigController"` MachineConfigDaemon string `json:"machineConfigDaemon"` MachineConfigServer string `json:"machineConfigServer"` MachineOSContent string `json:"machineOSContent"` }
RenderConfigImages are image names used to render templates under ./manifests/