nstemplatetier

package
v0.0.0-...-11831df Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutdatedTierSelector

OutdatedTierSelector creates a label selector to find MasterUserRecords or Spaces which are not up-to-date with the templateRefs of the given NSTemplateTier.

(longer explanation) newLabelSelector creates a selector to find MasterUserRecords which have a label with key `toolchain.dev.openshift.com/<tiername>-tier-hash` but whose value is NOT `<hash>`

In other words, this label selector will be used to list MasterUserRecords which have a user account set to the given `<tier>` but with a template version (defined by `<hash>`) which is NOT to the expected value (the one provided by `instance`).

Note: The `hash` value is computed from the TemplateRefs. See `computeTemplateRefsHash()`

Types

type Reconciler

type Reconciler struct {
	Client runtimeclient.Client
	Scheme *runtime.Scheme
}

Reconciler reconciles a NSTemplateTier object (only when this latter's specs were updated)

func (*Reconciler) Reconcile

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

Reconcile takes care of: - inserting a new entry in the `status.updates`

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr manager.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