nginxingress

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ManagedResourceName is the name of the nginx-ingress managed resource.
	ManagedResourceName = name
	// ManagedResourceNameShootAddon is the name of the nginx-ingress addon managed resource.
	ManagedResourceNameShootAddon = "shoot-addon-nginx-ingress"

	// LabelAppValue is the value of the 'app' label for the ingress controller.
	LabelAppValue = "nginx-ingress"
	// LabelKeyComponent is the 'component' key used in labels.
	LabelKeyComponent = "component"
	// LabelValueController is the value of the 'component' label for the ingress controller.
	LabelValueController = "controller"

	// ServicePortControllerHttps is the service port used by the controller.
	ServicePortControllerHttps int32 = 443
)

Variables

View Source
var (
	// TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy
	// or deleted.
	TimeoutWaitForManagedResource = 2 * time.Minute
	// WaitUntilHealthy is an alias for managedresources.WaitUntilHealthy. Exposed for tests.
	WaitUntilHealthy = managedresources.WaitUntilHealthy
)

Functions

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filter for the nginx-ingress logs.

func GetServiceName

func GetServiceName() string

GetServiceName provides the name of the service resource of the controller for cluster type Seed.

func New

func New(
	client client.Client,
	namespace string,
	values Values,
) component.DeployWaiter

New creates a new instance of DeployWaiter for nginx-ingress

Types

type Values

type Values struct {
	// ClusterType specifies the type of the cluster to which nginx-ingress is being deployed.
	ClusterType component.ClusterType
	// TargetNamespace is the namespace in which the resources should be deployed
	TargetNamespace string
	// KubernetesVersion is the Kubernetes version of the cluster.
	KubernetesVersion *semver.Version
	// ImageController is the container image used for nginx-ingress controller.
	ImageController string
	// ImageDefaultBackend is the container image used for default ingress backend.
	ImageDefaultBackend string
	// IngressClass is the ingress class for the seed nginx-ingress controller
	IngressClass string
	// PriorityClassName is the name of the priority class for the nginx-ingress controller.
	PriorityClassName string
	// ConfigData contains the configuration details for the nginx-ingress controller
	ConfigData map[string]string
	// LoadBalancerAnnotations are the annotations added to the nginx-ingress load balancer service.
	LoadBalancerAnnotations map[string]string
	// LoadBalancerSourceRanges is list of allowed IP sources for NginxIngress.
	LoadBalancerSourceRanges []string
	// ExternalTrafficPolicy controls the `.spec.externalTrafficPolicy` value of the load balancer `Service`
	// exposing the nginx-ingress.
	ExternalTrafficPolicy corev1.ServiceExternalTrafficPolicyType
	// VPAEnabled marks whether VerticalPodAutoscaler is enabled for the shoot.
	VPAEnabled bool
	// WildcardIngressDomains are the wildcard domains used by all ingress resources exposed by nginx-ingress.
	WildcardIngressDomains []string
	// IstioIngressGatewayLabels are the labels for identifying the used istio ingress gateway.
	IstioIngressGatewayLabels map[string]string
}

Values is a set of configuration values for the nginx-ingress component.

Jump to

Keyboard shortcuts

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