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 ¶
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.
Click to show internal directories.
Click to hide internal directories.