Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func MarkCrDeploying(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
- func MarkCrFailed(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
- func MarkCrFailedHealing(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
- func MarkCrHealthyMessage(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
- func MarkCrUpgradeHealingDegraded(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
- type ReconcileHostPathProvisioner
Constants ¶
const ( // OperatorImageDefault is the default value of the operator container image name. OperatorImageDefault = "hostpath-provisioner-operator" // ProvisionerImageDefault is the default value of the provisioner container image name. ProvisionerImageDefault = "hostpath-provisioner" // OperatorServiceAccountName is the name of Service Account used to run the operator. OperatorServiceAccountName = "hostpath-provisioner-operator" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new HostPathProvisioner Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func MarkCrDeploying ¶
func MarkCrDeploying(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
MarkCrDeploying marks the passed CR as currently deploying. The CR object needs to be updated by the caller afterwards. Deploying means the following status conditions are set: ApplicationAvailable: false Progressing: true Degraded: false
func MarkCrFailed ¶
func MarkCrFailed(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
MarkCrFailed marks the passed CR as failed and requiring human intervention. The CR object needs to be updated by the caller afterwards. Failed means the following status conditions are set: ApplicationAvailable: false Progressing: false Degraded: true
func MarkCrFailedHealing ¶
func MarkCrFailedHealing(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
MarkCrFailedHealing marks the passed CR as failed and healing. The CR object needs to be updated by the caller afterwards. FailedAndHealing means the following status conditions are set: ApplicationAvailable: false Progressing: true Degraded: true
func MarkCrHealthyMessage ¶
func MarkCrHealthyMessage(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
MarkCrHealthyMessage marks the passed in CR as healthy. The CR object needs to be updated by the caller afterwards. Healthy means the following status conditions are set: ApplicationAvailable: true Progressing: false Degraded: false
func MarkCrUpgradeHealingDegraded ¶
func MarkCrUpgradeHealingDegraded(cr *hostpathprovisionerv1alpha1.HostPathProvisioner, reason, message string)
MarkCrUpgradeHealingDegraded marks the passed CR as upgrading and degraded. The CR object needs to be updated by the caller afterwards. Failed means the following status conditions are set: ApplicationAvailable: true Progressing: true Degraded: true
Types ¶
type ReconcileHostPathProvisioner ¶
type ReconcileHostPathProvisioner struct {
// contains filtered or unexported fields
}
ReconcileHostPathProvisioner reconciles a HostPathProvisioner object
func (*ReconcileHostPathProvisioner) Reconcile ¶
func (r *ReconcileHostPathProvisioner) Reconcile(request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a HostPathProvisioner object and makes changes based on the state read and what is in the HostPathProvisioner.Spec The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.