constrainttemplatecontroller

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package constrainttemplatecontroller contains a controller that is responsible for ensuring that the kubermatic constraint templates are synced to the user cluster.

Index

Constants

View Source
const (
	// This controller syncs the kubermatic constraint templates to gatekeeper constraint templates on the user cluster.
	ControllerName = "gatekeeper_constraint_template_controller"
)

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context,
	mgr manager.Manager,
	clientProvider UserClusterClientProvider,
	log *zap.SugaredLogger,
	workerName string,
	numWorkers int) error

Types

type UserClusterClientProvider

type UserClusterClientProvider interface {
	GetClient(ctx context.Context, c *kubermaticv1.Cluster, options ...clusterclient.ConfigOption) (ctrlruntimeclient.Client, error)
}

UserClusterClientProvider provides functionality to get a user cluster client

Jump to

Keyboard shortcuts

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