nstemplateset

package
v0.0.0-...-cd9227a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 46 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MemberOperatorNS = "MEMBER_OPERATOR_NAMESPACE"
	Username         = "USERNAME"
	SpaceName        = "SPACE_NAME"
	Namespace        = "NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	AllNamespacesClient  runtimeclient.Client
	Client               runtimeclient.Client
	Scheme               *runtime.Scheme
	GetHostClusterClient host.ClientGetter
	AvailableAPIGroups   []metav1.APIGroup
}

func (APIClient) ApplyToolchainObjects

func (c APIClient) ApplyToolchainObjects(ctx context.Context, toolchainObjects []runtimeclient.Object, newLabels map[string]string) (bool, error)

ApplyToolchainObjects applies the given ToolchainObjects with the given labels. If any object is marked as optional, then it checks if the API group is available - if not, then it skips the object.

type Reconciler

type Reconciler struct {
	*APIClient
	// contains filtered or unexported fields
}

Reconciler the NSTemplateSet reconciler

func NewReconciler

func NewReconciler(apiClient *APIClient) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile reads that state of the cluster for a NSTemplateSet object and makes changes based on the state read and what is in the NSTemplateSet.Spec

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr manager.Manager, allNamespaceCluster runtimeCluster.Cluster, discoveryClient *discovery.DiscoveryClient) 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