lb_controller

package
v0.0.0-...-9411139 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateIDNotFound    string = "Certificate ID Not Found"
	TGAlreadyAttached        string = "Requested Target group already part of this Cluster."
	LBAlreadyAttached        string = "Requested Load balancer already part of this Cluster."
	FrontendIDNotFound       string = "no frontend id found in the status field"
	LBIDNotFound             string = "no lb id found in the status field"
	TGAlreadyExists          string = "Target Group with same name already in your account, Please provide different name."
	ACLAlreadyExists         string = "Duplicate Entry"
	LBAlreadyDeleted         string = "Sorry we unable to find this load balancer or you dont have access!"
	TGAlreadyDeleted         string = "Permission Denied, Possible reason not resource not exists."
	ACLIDNotFound            string = "ACL ID Not Found"
	RoutingRuleAlreadyExists string = "A routing rule with the same lbid, acl_id, and backend_id already exists."
)

Variables

This section is empty.

Functions

func DeleteACLRule

func DeleteACLRule(lbID, aclID string) error

func DeleteTargetGroup

func DeleteTargetGroup(id, name string) error

DeleteTargetGroup deletes a Target Group given its ID and name. This is a helper function used by DeleteTargetGroups.

func GetCertificateID

func GetCertificateID(certName string, l *logr.Logger) (string, error)

GetCertificateID gets the certificate ID for a given certificate name using the Utho client

func GetLB

func GetLB(id string) (*utho.Loadbalancer, error)

GetLB gets the load balancer with the specified ID using the Utho client

Types

type UthoApplicationReconciler

type UthoApplicationReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

UthoApplicationReconciler reconciles a UthoApplication object

func (*UthoApplicationReconciler) ACLCreationOnwards

func (*UthoApplicationReconciler) AttachLBToCluster

func (r *UthoApplicationReconciler) AttachLBToCluster(ctx context.Context, kubernetesID string, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

AttachLBToCluster attaches the Load Balancer to the Kubernetes cluster using the Utho API

func (*UthoApplicationReconciler) AttachTargetGroupToCluster

func (r *UthoApplicationReconciler) AttachTargetGroupToCluster(tgID string, kubernetesID string, l *logr.Logger) error

AttachTargetGroupToCluster attaches a singke target group cluster to the Kubernetes cluster using the Utho API

func (*UthoApplicationReconciler) AttachTargetGroupsToCluster

func (r *UthoApplicationReconciler) AttachTargetGroupsToCluster(ctx context.Context, kubernetesID string, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

AttachTargetGroupsToCluster attached all target groups to the Kubernetes cluster using the Utho API

func (*UthoApplicationReconciler) CreateACLRule

CreateACLRule creates a single ACL rule for the Load Balancer using Utho API

func (*UthoApplicationReconciler) CreateACLRules

CreateACLRules create ACL rules for the Load Balancer using Utho API and updates the status of the application

func (*UthoApplicationReconciler) CreateAdvancedRoutingRule

func (*UthoApplicationReconciler) CreateAdvancedRoutingRules

func (r *UthoApplicationReconciler) CreateAdvancedRoutingRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

func (*UthoApplicationReconciler) CreateLBFrontend

CreateLBFrontend creates a frontend for the Load Balancer using the Utho API and updates the status of the application

func (*UthoApplicationReconciler) CreateNLBBackend

CreateNLBBackend adds the Kubernetes Cluster as the Backend to the Load Balancer using the Utho API

func (*UthoApplicationReconciler) CreateTargetGroup

CreateTargetGroup creates a single target group using the Utho API and updates the status of application

func (*UthoApplicationReconciler) CreateTargetGroups

CreateTargetGroups creates all target groups defined in the application's specifications

func (*UthoApplicationReconciler) CreateUthoLoadBalancer

func (r *UthoApplicationReconciler) CreateUthoLoadBalancer(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

CreateUthoLoadBalancer creates a new Load Balancer using the Utho API and updates the status of the application

func (*UthoApplicationReconciler) DeleteACLRules

func (r *UthoApplicationReconciler) DeleteACLRules(ctx context.Context, lbID string, app *appsv1alpha1.UthoApplication, ids []string, l *logr.Logger) error

func (*UthoApplicationReconciler) DeleteLB

func (*UthoApplicationReconciler) DeleteTargetGroups

func (*UthoApplicationReconciler) FrontendCreationOnwards

func (r *UthoApplicationReconciler) FrontendCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

FrontendCreationOnwards manages the control flow from Frontend Creation onwards and updates the application status

func (*UthoApplicationReconciler) GetClusterID

func (r *UthoApplicationReconciler) GetClusterID(ctx context.Context, l *logr.Logger) (string, error)

GetClusterID gets the cluster ID from the first node in the cluster

func (*UthoApplicationReconciler) LBAttachmentOnwards

func (r *UthoApplicationReconciler) LBAttachmentOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

LBAttachmentOnwards manages the control flow from Load Balancer attachment onwards and updates the application status

func (*UthoApplicationReconciler) Reconcile

func (*UthoApplicationReconciler) SetupWithManager

func (r *UthoApplicationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*UthoApplicationReconciler) TGAttachmentOnwards

func (r *UthoApplicationReconciler) TGAttachmentOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error

TGAttachmentOnwards manages the control flow from Target Group attachment onwards and updates the application status

func (*UthoApplicationReconciler) TGCreationOnwards

TGCreationOnwards manages the control flow from creation of target groups onwards and updates the application status

func (*UthoApplicationReconciler) UpdateAClRules

func (*UthoApplicationReconciler) UpdateFrontend

UpdateFrontend updates the frontend configuration of a load balancer based on the specified UthoApplication

func (*UthoApplicationReconciler) UpdateTargetGroups

UpdateTargetGroups updates the target groups associated with an UthoApplication

Jump to

Keyboard shortcuts

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