che

package
v0.0.0-...-e007fce Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: EPL-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProxyConfiguration

func GetProxyConfiguration(deployContext *chetypes.DeployContext) (*chetypes.Proxy, error)

func IsEclipseCheRelatedObj

func IsEclipseCheRelatedObj(cl client.Client, watchNamespace string, obj client.Object) (bool, ctrl.Request)

isEclipseCheRelatedObj indicates if there is an object in a che namespace with the labels: - 'app.kubernetes.io/part-of=che.eclipse.org' - 'app.kubernetes.io/instance=che'

func IsTrustedBundleConfigMap

func IsTrustedBundleConfigMap(cl client.Client, watchNamespace string, obj client.Object) (bool, ctrl.Request)

IsTrustedBundleConfigMap detects whether given config map is the config map with additional CA certificates to be trusted by Che

Types

type CheClusterReconciler

type CheClusterReconciler struct {
	Log    logr.Logger
	Scheme *k8sruntime.Scheme
	// contains filtered or unexported fields
}

CheClusterReconciler reconciles a CheCluster object

func NewReconciler

func NewReconciler(
	k8sclient client.Client,
	noncachedClient client.Client,
	discoveryClient discovery.DiscoveryInterface,
	scheme *k8sruntime.Scheme,
	namespace string) *CheClusterReconciler

NewReconciler returns a new CheClusterReconciler

func (*CheClusterReconciler) Reconcile

func (r *CheClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.5/pkg/reconcile

func (*CheClusterReconciler) SetupWithManager

func (r *CheClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CheClusterValidator

type CheClusterValidator struct {
	deploy.Reconcilable
}

CheClusterValidator checks CheCluster CR configuration. It detects: - configurations which miss required field(s) to deploy Che

func NewCheClusterValidator

func NewCheClusterValidator() *CheClusterValidator

func (*CheClusterValidator) Finalize

func (v *CheClusterValidator) Finalize(ctx *chetypes.DeployContext) bool

func (*CheClusterValidator) Reconcile

Jump to

Keyboard shortcuts

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