util

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIngressClassMatched

func CheckIngressClassMatched(ctx context.Context, c client.Client, mci *networkingv1alpha1.MultiClusterIngress, ingClassName string) bool

CheckIngressClassMatched checks weather the .spec.controller value of the IngressClass referenced in input mci Object matched the input ingClassName value.

func GetDefaultIngressClass

func GetDefaultIngressClass(ctx context.Context, c client.Client) (string, error)

GetDefaultIngressClass returns the default IngressClass form the list of IngressClasses. If multiple IngressClasses are marked as the default, it returns an error. If no IngressClass is marked as the default, it returns an empty string.

func MCSContainLoadBalanceType

func MCSContainLoadBalanceType(mcs *networkingv1alpha1.MultiClusterService) bool

MCSContainLoadBalanceType checks weather the MultiClusterService contains LoadBalancer type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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