Documentation
¶
Index ¶
- func GetProxyConfiguration(deployContext *chetypes.DeployContext) (*chetypes.Proxy, error)
- func IsEclipseCheRelatedObj(cl client.Client, watchNamespace string, obj client.Object) (bool, ctrl.Request)
- func IsTrustedBundleConfigMap(cl client.Client, watchNamespace string, obj client.Object) (bool, ctrl.Request)
- type CheClusterReconciler
- type CheClusterValidator
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'
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 ¶
func (v *CheClusterValidator) Reconcile(ctx *chetypes.DeployContext) (reconcile.Result, bool, error)