cheinstallation

package
v0.0.0-...-732e647 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
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

func Add(mgr manager.Manager) error

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

func NewNamespace(name string) *v1.Namespace

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

func (*ReconcileCheInstallation) Reconcile

Reconcile reads that state of the cluster for a CheInstallation object and makes changes based on the state read and what is in the CheInstallation.Spec

Jump to

Keyboard shortcuts

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