Documentation ¶
Index ¶
Constants ¶
const ControllerName = "hostprofile-controller"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileHostProfile ¶
type ReconcileHostProfile struct { client.Client common.ReconcilerEventLogger // contains filtered or unexported fields }
ReconcileHostProfile reconciles a HostProfile object
func (*ReconcileHostProfile) ProfileUses ¶
func (r *ReconcileHostProfile) ProfileUses(namespace, base, target string) (bool, error)
ProfileUses determines whether the 'base' profile references the 'target' profile either directly or indirectly via one of its parent/base profiles.
func (*ReconcileHostProfile) Reconcile ¶
Reconcile reads that state of the cluster for a HostProfile object and makes changes based on the state read and what is in the HostProfile.Spec +kubebuilder:rbac:groups="",resources=events,verbs=create;patch +kubebuilder:rbac:groups=starlingx.windriver.com,resources=hostprofiles,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=starlingx.windriver.com,resources=hostprofiles/status,verbs=get;update;patch
func (*ReconcileHostProfile) UpdateHosts ¶
func (r *ReconcileHostProfile) UpdateHosts(instance *starlingxv1.HostProfile) error
UpdateHosts will force a update to each host that references this profile. This is to ensure that hosts get reconciled whenever any of their profiles get updated.