Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutdatedTierSelector ¶
func OutdatedTierSelector(tier *toolchainv1alpha1.NSTemplateTier) (runtimeclient.MatchingLabelsSelector, error)
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 ¶
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.