controller

package
v0.0.0-...-54c5aff Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For VCL version name we use config map resource version which is a number.
	// Varnish doesn't accept config name that have numbers in the beginning. Even if it is disguised as strings (e.g. "1243").
	// For that reasons we prepend this prefix.
	VCLVersionPrefix = "v-"
)

Variables

This section is empty.

Functions

func SetupVarnishReconciler

func SetupVarnishReconciler(mgr manager.Manager, cfg *config.Config, varnish varnishadm.VarnishAdministrator, metrics *metrics.VarnishControllerMetrics, logr *logger.Logger) error

SetupVarnishReconciler creates a new VarnishCluster Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type PodInfo

type PodInfo struct {
	IP         string
	NodeLabels map[string]string
	PodName    string
	Weight     float64
}

PodInfo represents the relevant information of a pod for VCL code

type ReconcileVarnish

type ReconcileVarnish struct {
	client.Client
	// contains filtered or unexported fields
}

func (*ReconcileVarnish) Reconcile

func (r *ReconcileVarnish) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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