Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func InstallationFailed(message string) toolchainv1alpha1.Condition
- func InstallationSucceeded() toolchainv1alpha1.Condition
- func Installing(message string) toolchainv1alpha1.Condition
- func NewCheCluster(ns string) *orgv1.CheCluster
- func NewInstallation() *v1alpha1.CheInstallation
- func NewNamespace(name string) *v1.Namespace
- func NewOperatorGroup(ns string) *olmv1.OperatorGroup
- func NewSubscription(ns string) *olmv1alpha1.Subscription
- func Terminating(message string) toolchainv1alpha1.Condition
- type ReconcileCheInstallation
Constants ¶
const ( // InstallationName the name of the CheInstallation resource (cluster-scoped) InstallationName = "toolchain-workspaces-installation" // Namespace the namespace in which the OLM OperatorGroup and Subscription resources will be created Namespace = "toolchain-workspaces" // OperatorGroupName the name of the OLM OperatorGroup for Che OperatorGroupName = InstallationName // SubscriptionName the name of the OLM subscription for Che SubscriptionName = "codeready-workspaces" // StartingCSV keeps the CSV version the installation should start with StartingCSV = "crwoperator.v2.0.0" // CheClusterName the name of the CheCluster CheClusterName = "codeready-workspaces" // CheFlavorName the name of the CheCluster flavor CheFlavorName = "codeready" // AvailableStatus constant for Available status AvailableStatus = "Available" // CheClusterCRDName the fully qualified name of the CheCluster CRD CheClusterCRDName = "checlusters.org.eclipse.che" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new CheInstallation Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func InstallationFailed ¶
func InstallationFailed(message string) toolchainv1alpha1.Condition
InstallationFailed returns a status condition for the case where the Che installation failed
func InstallationSucceeded ¶
func InstallationSucceeded() toolchainv1alpha1.Condition
InstallationSucceeded returns a status condition for the case where the Che installation succeeded
func Installing ¶
func Installing(message string) toolchainv1alpha1.Condition
Installing returns the status condition to set when Che is (still) being installed
func NewCheCluster ¶
func NewCheCluster(ns string) *orgv1.CheCluster
NewCheCluster returns a new CheCluster with the given namespace
func NewInstallation ¶
func NewInstallation() *v1alpha1.CheInstallation
NewInstallation returns a new CheInstallation resource
func NewNamespace ¶
NewNamespace return a new namespace with the toolchain labels
func NewOperatorGroup ¶
func NewOperatorGroup(ns string) *olmv1.OperatorGroup
NewOperatorGroup returns a new OLM Operator Group for the given ns, with the toolchain labels
func NewSubscription ¶
func NewSubscription(ns string) *olmv1alpha1.Subscription
NewSubscription for CodeReady Workspaces operator
func Terminating ¶
func Terminating(message string) toolchainv1alpha1.Condition
Terminating returns the status condition to set when Che is (still) being uninstalled
Types ¶
type ReconcileCheInstallation ¶
type ReconcileCheInstallation struct {
// contains filtered or unexported fields
}
ReconcileCheInstallation reconciles a CheInstallation object