utils

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigMapEqual added in v0.17.1

func DefaultConfigMapEqual(cm1, cm2 *corev1.ConfigMap) bool

DefaultConfigMapEqual is a basic equality testing function for K8s ConfigMaps based on string Data.

Types

type ConfigMapReconciler

type ConfigMapReconciler struct {
	KubeClient kubernetes.Interface
	Lister     corev1listers.ConfigMapLister
	Recorder   record.EventRecorder
}

func (*ConfigMapReconciler) ReconcileConfigMap

func (r *ConfigMapReconciler) ReconcileConfigMap(obj runtime.Object, cm *corev1.ConfigMap, eqFunc func(*corev1.ConfigMap, *corev1.ConfigMap) bool, handlers ...cache.ResourceEventHandlerFuncs) (*corev1.ConfigMap, error)

ReconcileConfigMap reconciles the K8s ConfigMap 'cm'.

type DeploymentReconciler

type DeploymentReconciler struct {
	KubeClient kubernetes.Interface
	Lister     appsv1listers.DeploymentLister
	Recorder   record.EventRecorder
}

func (*DeploymentReconciler) ReconcileDeployment

func (r *DeploymentReconciler) ReconcileDeployment(obj runtime.Object, d *appsv1.Deployment) (*appsv1.Deployment, error)

ReconcileDeployment reconciles the K8s Deployment 'd'.

type ServiceReconciler

type ServiceReconciler struct {
	KubeClient      kubernetes.Interface
	ServiceLister   corev1listers.ServiceLister
	EndpointsLister corev1listers.EndpointsLister
	Recorder        record.EventRecorder
}

func (*ServiceReconciler) ReconcileService

func (r *ServiceReconciler) ReconcileService(obj runtime.Object, svc *corev1.Service) (*corev1.Endpoints, error)

ReconcileService reconciles the K8s Service 'svc'.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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