kieapp

package
v0.0.0-...-23030c4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, reconciler reconcile.Reconciler) error

Add Creates a new controller and starts watching resources

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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