Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func AfterLast(value string, a string) string
- func Def(s string, other string, defVal string) string
- func LogPerLine(header string, out string)
- func ReconcileExistingDeployment(r *ReconcileKWebUI, request reconcile.Request, ...) (reconcile.Result, error)
- func RemoveFile(name string)
- func RunCommand(cmd string, args []string, env []string, anonymArgs []string) error
- func Unique() string
- type ReconcileKWebUI
Constants ¶
View Source
const ConfigFilePattern = "/tmp/config_%s"
View Source
const InventoryFilePattern = "/tmp/inventory_%s.ini"
View Source
const PhaseDeprovision = "DEPROVISION_STARTED"
View Source
const PhaseDeprovisionFailed = "DEPROVISION_FAILED"
View Source
const PhaseDeprovisioned = "DEPROVISIONED"
View Source
const PhaseFreshProvision = "PROVISION_STARTED"
View Source
const PhaseNoDeployment = "NOT_DEPLOYED"
View Source
const PhaseOtherError = "OTHER_ERROR"
View Source
const PhaseOwnerReferenceFailed = "OWNER_REFERENCE_FAILED"
View Source
const PhaseProvisionFailed = "PROVISION_FAILED"
View Source
const PhaseProvisioned = "PROVISIONED"
View Source
const PlaybookFile = "/opt/kwebui/kubevirt-web-ui-ansible/playbooks/kubevirt-web-ui/config.yml"
View Source
const VersionAutomatic = "automatic"
View Source
const WebUIContainerName = "console"
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new KWebUI Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func LogPerLine ¶
func ReconcileExistingDeployment ¶
func ReconcileExistingDeployment(r *ReconcileKWebUI, request reconcile.Request, instance *kubevirtv1alpha1.KWebUI, deployment *extenstionsv1beta1.Deployment) (reconcile.Result, error)
func RemoveFile ¶
func RemoveFile(name string)
func RunCommand ¶
Types ¶
type ReconcileKWebUI ¶
type ReconcileKWebUI struct {
// contains filtered or unexported fields
}
ReconcileKWebUI reconciles a KWebUI object
func (*ReconcileKWebUI) Reconcile ¶
Reconcile reads that state of the cluster for a KWebUI object and makes changes based on the state read and what is in the KWebUI.Spec Note: 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.
Click to show internal directories.
Click to hide internal directories.