nstemplateset

package
v0.0.0-...-3ec7d15 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

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
	GetHostCluster      cluster.GetHostClusterFunc
	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