controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ObjectHashAnnotationKey = "object-hash"

	DeploymentIdentifierField     = "deploymentIdentifier"
	DeploymentOwnerField          = "deploymentOwner"
	DaemonSetOwnerField           = "daemonSetOwner"
	HealthCheckNodePortAnnotation = "ingressdaemonsets.mumoshu.github.io/health-check-node-port"
)

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(obj interface{}) string

ComputeHash returns a hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.

Proudly modified and adopted from k8s.io/kubernetes/pkg/util/hash.DeepHashObject and k8s.io/kubernetes/pkg/controller.ComputeHash.

func GetAnnotation

func GetAnnotation(meta metav1.Object, key string) (string, bool)

func GetHealthCheckNodePort

func GetHealthCheckNodePort(ds appsv1.DaemonSet) (int, error)

func SetAnnotation

func SetAnnotation(meta metav1.Object, key string, value string) (map[string]string, bool)

Types

type IngressDaemonSetReconciler

type IngressDaemonSetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

IngressDaemonSetReconciler reconciles a IngressDaemonSet object

func (*IngressDaemonSetReconciler) Reconcile

func (r *IngressDaemonSetReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*IngressDaemonSetReconciler) SetupWithManager

func (r *IngressDaemonSetReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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