integration

package
v0.0.0-...-036f9fd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//define type Int and String
	Int intstr.Type = iota
	String
)

define type const

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Integration Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func CheckIngressRulesExist

func CheckIngressRulesExist(config *EIConfigNew, currentIngress *networking.Ingress) ([]networking.IngressRule, bool)

CheckIngressRulesExist checks the ingress rules are exist in current ingress

func GenerateIngressPaths

func GenerateIngressPaths(m *wso2v1alpha2.Integration) []networking.HTTPIngressPath

GenerateIngressPaths generates the ingress paths

Types

type EIConfigNew

type EIConfigNew struct {
	// contains filtered or unexported fields
}

EIConfigNew bares all configurations related to EI deployment

type ReconcileIntegration

type ReconcileIntegration struct {
	// contains filtered or unexported fields
}

ReconcileIntegration reconciles a Integration object

func (*ReconcileIntegration) GetConfigMap

func (r *ReconcileIntegration) GetConfigMap(integration *wso2v1alpha2.Integration, configMapName string) (*corev1.ConfigMap, error)

Get configmap by the given name

func (*ReconcileIntegration) PopulateConfigurations

func (r *ReconcileIntegration) PopulateConfigurations(integration *wso2v1alpha2.Integration) (EIConfigNew, error)

PopulateConfigurations updates the default configs of Host, TLS, and ingress creation. Read from Integration first, If not defined, read defaults from integrationConfigMap and update integration

func (*ReconcileIntegration) Reconcile

func (r *ReconcileIntegration) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Integration object and makes changes based on the state read and what is in the Integration.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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