controller

package
v0.0.0-...-708c42f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDetails

type ImageDetails struct {
	Name     string `json:"name"`
	FullName string `json:"fullName"`
	Tag      string `json:"tag"`
}

func ParseContainerImage

func ParseContainerImage(image string) ImageDetails

func ParseContainers

func ParseContainers(containers []corev1.Container) []ImageDetails

type MonitorConfig

type MonitorConfig struct {
	NamespaceRegex    *regexp.Regexp
	PodWebhook        string
	DeploymentWebhook string
	ReplicaWebhook    string
	APIKey            string
	APIKeyHeader      string
	IsReady           bool
}

type MonitorReconciler

type MonitorReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config *MonitorConfig
}

MonitorReconciler reconciles a Monitor object

func (*MonitorReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*MonitorReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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