cloudprovidercontroller

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCondition

GetCondition returns the condition with the provided type.

func NewCondition

func NewCondition(condType v1.CloudProviderConditionType, status v1.ConditionStatus, reason, message string) *v1.CloudProviderCondition

NewCondition creates a new deployment condition.

func RemoveCondition

func RemoveCondition(status *v1.CloudProviderStatus, condType v1.CloudProviderConditionType)

RemoveCondition removes the deployment condition with the provided type.

func SetCondition

func SetCondition(status *v1.CloudProviderStatus, condition v1.CloudProviderCondition)

SetCondition updates the deployment to include the provided condition. If the condition that we are about to add already exists and has the same status and reason then we are not going to update.

Types

type CloudProviderReconciler

type CloudProviderReconciler struct {
	ClusterLister listerv1.ClusterLister
	ClusterWriter cluster.ClusterWriter

	CloudProviderLister listerv1.CloudProviderLister
	CloudProviderWriter cluster.CloudProviderWriter

	NodeLister listerv1.NodeLister
	NodeWriter cluster.NodeWriter

	ConfigmapLister listerv1.ConfigMapLister
	ConfigmapWriter core.ConfigMapWriter
}

func (*CloudProviderReconciler) Reconcile

func (r *CloudProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*CloudProviderReconciler) SetupWithManager

func (r *CloudProviderReconciler) SetupWithManager(mgr manager.Manager, cache informers.InformerCache) error

Jump to

Keyboard shortcuts

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