nginxingress

package
v0.2.3-patch-4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultcName is the default Ingress class name
	DefaultIcName = "webapprouting.kubernetes.azure.com"
	// DefaultNicName is the default Nginx Ingress Controller resource name
	DefaultNicName         = "default"
	DefaultNicResourceName = "nginx"
)

Variables

This section is empty.

Functions

func AddIngressClassNameIndex

func AddIngressClassNameIndex(indexer client.FieldIndexer, indexName string) error

AddIngressClassNameIndex adds an index for the ingress class name to the indexer

func GetDefaultIngressClassControllerClass

func GetDefaultIngressClassControllerClass(cl client.Client) (string, error)

GetDefaultIngressClassControllerClass returns the default ingress class controller class

func GetDefaultNginxIngressController

func GetDefaultNginxIngressController() approutingv1alpha1.NginxIngressController

func IngressSource

func IngressSource(ctx context.Context, cl client.Client, conf *config.Config, defaultControllerClass string, ing *netv1.Ingress, ingressClassNameIndex string) (policyv1alpha1.IngressSourceSpec, bool, error)

IngressSource returns the ingress source for the given ingress if it's managed by the operator. If the Ingress isn't managed by the operator, it returns false.

func IsDefaultNic

IsDefaultNic returns true if the given NginxIngressController is the default one

func IsIngressManaged

func IsIngressManaged(ctx context.Context, cl client.Client, ing *netv1.Ingress, ingressClassNameIndex string) (bool, error)

IsIngressManaged returns true if the ingress is managed by the operator

func NewDefaultReconciler

func NewDefaultReconciler(mgr ctrl.Manager, conf *config.Config) error

func NewReconciler

func NewReconciler(conf *config.Config, mgr ctrl.Manager, defaultIngressClassControllerClass string) error

NewReconciler sets up the controller with the Manager.

func ToNginxIngressConfig

func ToNginxIngressConfig(nic *approutingv1alpha1.NginxIngressController, defaultNicControllerClass string) *manifests.NginxIngressConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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