Documentation
¶
Index ¶
- Constants
- func DeleteACLRule(lbID, aclID string) error
- func DeleteTargetGroup(id, name string) error
- func GetCertificateID(certName string, l *logr.Logger) (string, error)
- func GetLB(id string) (*utho.Loadbalancer, error)
- type UthoApplicationReconciler
- func (r *UthoApplicationReconciler) ACLCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) AttachLBToCluster(ctx context.Context, kubernetesID string, app *appsv1alpha1.UthoApplication, ...) error
- func (r *UthoApplicationReconciler) AttachTargetGroupToCluster(tgID string, kubernetesID string, l *logr.Logger) error
- func (r *UthoApplicationReconciler) AttachTargetGroupsToCluster(ctx context.Context, kubernetesID string, app *appsv1alpha1.UthoApplication, ...) error
- func (r *UthoApplicationReconciler) CreateACLRule(ctx context.Context, app *appsv1alpha1.UthoApplication, ...) error
- func (r *UthoApplicationReconciler) CreateACLRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) CreateAdvancedRoutingRule(ctx context.Context, app *appsv1alpha1.UthoApplication, ...) error
- func (r *UthoApplicationReconciler) CreateAdvancedRoutingRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) CreateLBFrontend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) CreateNLBBackend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) CreateTargetGroup(ctx context.Context, tg *appsv1alpha1.TargetGroup, ...) error
- func (r *UthoApplicationReconciler) CreateTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) CreateUthoLoadBalancer(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) DeleteACLRules(ctx context.Context, lbID string, app *appsv1alpha1.UthoApplication, ...) error
- func (r *UthoApplicationReconciler) DeleteLB(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) DeleteTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) FrontendCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) GetClusterID(ctx context.Context, l *logr.Logger) (string, error)
- func (r *UthoApplicationReconciler) LBAttachmentOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *UthoApplicationReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *UthoApplicationReconciler) TGAttachmentOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) TGCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) UpdateAClRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) UpdateFrontend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
- func (r *UthoApplicationReconciler) UpdateTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
Constants ¶
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 DeleteTargetGroup ¶
DeleteTargetGroup deletes a Target Group given its ID and name. This is a helper function used by DeleteTargetGroups.
func GetCertificateID ¶
GetCertificateID gets the certificate ID for a given certificate name 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 (r *UthoApplicationReconciler) ACLCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
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 ¶
func (r *UthoApplicationReconciler) CreateACLRule(ctx context.Context, app *appsv1alpha1.UthoApplication, rule *appsv1alpha1.ACLRule, l *logr.Logger) error
CreateACLRule creates a single ACL rule for the Load Balancer using Utho API
func (*UthoApplicationReconciler) CreateACLRules ¶
func (r *UthoApplicationReconciler) CreateACLRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
CreateACLRules create ACL rules for the Load Balancer using Utho API and updates the status of the application
func (*UthoApplicationReconciler) CreateAdvancedRoutingRule ¶
func (r *UthoApplicationReconciler) CreateAdvancedRoutingRule(ctx context.Context, app *appsv1alpha1.UthoApplication, rule *appsv1alpha1.AdvancedRoutingRule, l *logr.Logger) error
func (*UthoApplicationReconciler) CreateAdvancedRoutingRules ¶
func (r *UthoApplicationReconciler) CreateAdvancedRoutingRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
func (*UthoApplicationReconciler) CreateLBFrontend ¶
func (r *UthoApplicationReconciler) CreateLBFrontend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
CreateLBFrontend creates a frontend for the Load Balancer using the Utho API and updates the status of the application
func (*UthoApplicationReconciler) CreateNLBBackend ¶
func (r *UthoApplicationReconciler) CreateNLBBackend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
CreateNLBBackend adds the Kubernetes Cluster as the Backend to the Load Balancer using the Utho API
func (*UthoApplicationReconciler) CreateTargetGroup ¶
func (r *UthoApplicationReconciler) CreateTargetGroup(ctx context.Context, tg *appsv1alpha1.TargetGroup, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
CreateTargetGroup creates a single target group using the Utho API and updates the status of application
func (*UthoApplicationReconciler) CreateTargetGroups ¶
func (r *UthoApplicationReconciler) CreateTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
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 (r *UthoApplicationReconciler) DeleteLB(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
func (*UthoApplicationReconciler) DeleteTargetGroups ¶
func (r *UthoApplicationReconciler) DeleteTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
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) 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 ¶
func (r *UthoApplicationReconciler) TGCreationOnwards(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
TGCreationOnwards manages the control flow from creation of target groups onwards and updates the application status
func (*UthoApplicationReconciler) UpdateAClRules ¶
func (r *UthoApplicationReconciler) UpdateAClRules(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
func (*UthoApplicationReconciler) UpdateFrontend ¶
func (r *UthoApplicationReconciler) UpdateFrontend(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
UpdateFrontend updates the frontend configuration of a load balancer based on the specified UthoApplication
func (*UthoApplicationReconciler) UpdateTargetGroups ¶
func (r *UthoApplicationReconciler) UpdateTargetGroups(ctx context.Context, app *appsv1alpha1.UthoApplication, l *logr.Logger) error
UpdateTargetGroups updates the target groups associated with an UthoApplication