operator

package
Version: v3.11.1-0...-04b1d6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindClusterOperatorStatusCondition

func FindClusterOperatorStatusCondition(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) *configv1.ClusterOperatorStatusCondition

FindClusterOperatorStatusCondition finds the conditionType in conditions.

func IsClusterOperatorStatusConditionFalse

func IsClusterOperatorStatusConditionFalse(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) bool

IsClusterOperatorStatusConditionFalse returns true when the conditionType is present and set to `configv1.ConditionFalse`

func IsClusterOperatorStatusConditionNotIn

func IsClusterOperatorStatusConditionNotIn(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType, status ...configv1.ConditionStatus) bool

IsClusterOperatorStatusConditionNotIn returns true when the conditionType does not match the status.

func IsClusterOperatorStatusConditionPresentAndEqual

func IsClusterOperatorStatusConditionPresentAndEqual(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType, status configv1.ConditionStatus) bool

IsClusterOperatorStatusConditionPresentAndEqual returns true when conditionType is present and equal to status.

func IsClusterOperatorStatusConditionTrue

func IsClusterOperatorStatusConditionTrue(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) bool

IsClusterOperatorStatusConditionTrue returns true when the conditionType is present and set to `configv1.ConditionTrue`

func RemoveClusterOperatorStatusCondition

func RemoveClusterOperatorStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType)

RemoveClusterOperatorStatusCondition removes the corresponding conditionType from conditions.

func RenderBootstrap

func RenderBootstrap(
	clusterConfigConfigMapFile string,
	etcdCAFile, rootCAFile string, pullSecretFile string,
	imgs Images,
	destinationDir string,
) error

RenderBootstrap writes to destinationDir static Pods.

func SetClusterOperatorStatusCondition

func SetClusterOperatorStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, newCondition configv1.ClusterOperatorStatusCondition)

SetClusterOperatorStatusCondition sets the corresponding condition in conditions to newCondition.

Types

type Images

type Images struct {
	MachineConfigController string `json:"machineConfigController"`
	MachineConfigDaemon     string `json:"machineConfigDaemon"`
	MachineConfigServer     string `json:"machineConfigServer"`
}

Images allows build systems to inject images for MCO components.

func DefaultImages

func DefaultImages() Images

DefaultImages returns default set of images for operator.

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

Operator defines machince config operator.

func New

func New(
	namespace, name string,
	imagesFile string,
	mcoconfigInformer mcfginformersv1.MCOConfigInformer,
	controllerConfigInformer mcfginformersv1.ControllerConfigInformer,
	serviceAccountInfomer coreinformersv1.ServiceAccountInformer,
	crdInformer apiextinformersv1beta1.CustomResourceDefinitionInformer,
	deployInformer appsinformersv1.DeploymentInformer,
	daemonsetInformer appsinformersv1.DaemonSetInformer,
	clusterRoleInformer rbacinformersv1.ClusterRoleInformer,
	clusterRoleBindingInformer rbacinformersv1.ClusterRoleBindingInformer,
	client mcfgclientset.Interface,
	kubeClient kubernetes.Interface,
	apiExtClient apiextclientset.Interface,
	configClient configclientset.Interface,
) *Operator

New returns a new machine config operator.

func (*Operator) Run

func (optr *Operator) Run(workers int, stopCh <-chan struct{})

Run runs the machine config operator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL