Documentation ¶
Index ¶
- Constants
- func AddIngressClassNameIndex(indexer client.FieldIndexer, indexName string) error
- func GetDefaultIngressClassControllerClass(cl client.Client) (string, error)
- func GetDefaultNginxIngressController() approutingv1alpha1.NginxIngressController
- func IngressSource(ctx context.Context, cl client.Client, conf *config.Config, ...) (policyv1alpha1.IngressSourceSpec, bool, error)
- func IsDefaultNic(nic *approutingv1alpha1.NginxIngressController) bool
- func IsIngressManaged(ctx context.Context, cl client.Client, ing *netv1.Ingress, ...) (bool, error)
- func NewDefaultReconciler(mgr ctrl.Manager) error
- func NewReconciler(conf *config.Config, mgr ctrl.Manager, ...) error
- func ToNginxIngressConfig(nic *approutingv1alpha1.NginxIngressController, ...) *manifests.NginxIngressConfig
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 ¶
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 ¶
func IsDefaultNic(nic *approutingv1alpha1.NginxIngressController) bool
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 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.
Click to show internal directories.
Click to hide internal directories.