Documentation ¶
Index ¶
- func Add(mgr manager.Manager, reconciler reconcile.Reconciler) error
- type KieAppReconciler
- func (reconciler *KieAppReconciler) CreateConfigMaps(myDep *appsv1.Deployment)
- func (reconciler *KieAppReconciler) GetRouteHost(route routev1.Route, routes []client.Object) string
- func (reconciler *KieAppReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
- func (r *KieAppReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (reconciler *KieAppReconciler) UpdateObj(obj api.OpenShiftObject) (reconcile.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KieAppReconciler ¶
type KieAppReconciler struct { client.Client Scheme *runtime.Scheme Service kubernetes.PlatformService OcpVersion string }
KieAppReconciler reconciles a KieApp object
func (*KieAppReconciler) CreateConfigMaps ¶
func (reconciler *KieAppReconciler) CreateConfigMaps(myDep *appsv1.Deployment)
CreateConfigMaps generates & creates necessary ConfigMaps from embedded files
func (*KieAppReconciler) GetRouteHost ¶
func (reconciler *KieAppReconciler) GetRouteHost(route routev1.Route, routes []client.Object) string
GetRouteHost returns the Hostname of the route provided
func (*KieAppReconciler) Reconcile ¶
func (reconciler *KieAppReconciler) Reconcile(ctx context.Context, request 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. the KieApp object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*KieAppReconciler) SetupWithManager ¶
func (r *KieAppReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*KieAppReconciler) UpdateObj ¶
func (reconciler *KieAppReconciler) UpdateObj(obj api.OpenShiftObject) (reconcile.Result, error)
UpdateObj reconciles the given object