integration

package
v0.0.0-...-c8edc81 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 20 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(m *integrationv1alpha1.Integration, eic *EIController, currentIngress *v1beta1.Ingress) ([]v1beta1.IngressRule, bool)

CheckIngressRulesExist checks the ingress rules are exist in current ingress

func GenerateIngressPaths

func GenerateIngressPaths(m *integrationv1alpha1.Integration) []v1beta1.HTTPIngressPath

GenerateIngressPaths generates the ingress paths

Types

type EIController

type EIController struct {
	AutoCreateIngress bool
	SSLRedirect       string
	TLS               string
	Host              string
}

EIController control all deployments of the ei-ingress

type ReconcileIntegration

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

ReconcileIntegration reconciles a Integration object

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 Controller logic written for creates an Integration Deployment for each Integration CR 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.

func (*ReconcileIntegration) UpdateDefaultConfigs

func (r *ReconcileIntegration) UpdateDefaultConfigs(integration *integrationv1alpha1.Integration) EIController

UpdateDefaultConfigs updates the default configs of Host, TLS, and ingress creation

Jump to

Keyboard shortcuts

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