hostprofile

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "hostprofile-controller"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new HostProfile Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

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

func (r *ReconcileHostProfile) Reconcile(request reconcile.Request) (reconcile.Result, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL