service

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvoyServiceHTTPPort is the HTTP port number of the Envoy service.
	EnvoyServiceHTTPPort = int32(80)
	// EnvoyServiceHTTPSPort is the HTTPS port number of the Envoy service.
	EnvoyServiceHTTPSPort = int32(443)
	// EnvoyNodePortHTTPPort is the NodePort port number for Envoy's HTTP service. For NodePort
	// details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
	EnvoyNodePortHTTPPort = int32(30080)
	// EnvoyNodePortHTTPSPort is the NodePort port number for Envoy's HTTPS service. For NodePort
	// details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
	EnvoyNodePortHTTPSPort = int32(30443)
)

Variables

View Source
var (
	// InternalLBAnnotations maps cloud providers to the provider's annotation
	// key/value pair used for managing an internal load balancer. For additional
	// details see:
	//  https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
	//
	InternalLBAnnotations = map[operatorv1alpha1.LoadBalancerProviderType]map[string]string{
		operatorv1alpha1.AWSLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
		operatorv1alpha1.AzureLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
		operatorv1alpha1.GCPLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
	}
)

Functions

func DesiredContourService

func DesiredContourService(contour *operatorv1alpha1.Contour) *corev1.Service

DesiredContourService generates the desired Contour Service for the given contour.

func DesiredEnvoyService

func DesiredEnvoyService(contour *operatorv1alpha1.Contour) *corev1.Service

DesiredEnvoyService generates the desired Envoy Service for the given contour.

func EnsureContourService

func EnsureContourService(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureContourService ensures that a Contour Service exists for the given contour.

func EnsureContourServiceDeleted

func EnsureContourServiceDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureContourServiceDeleted ensures that a Contour Service for the provided contour is deleted if Contour owner labels exist.

func EnsureEnvoyService

func EnsureEnvoyService(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureEnvoyService ensures that an Envoy Service exists for the given contour.

func EnsureEnvoyServiceDeleted

func EnsureEnvoyServiceDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error

EnsureEnvoyServiceDeleted ensures that an Envoy Service for the provided contour is deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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