proxy

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// XdsTLSCertFilepath is the fully qualified path of the file containing Envoy's
	// xDS server TLS certificate.
	XdsTLSCertFilepath = "/certs/tls.crt"
	// XdsTLSKeyFilepath is the fully qualified path of the file containing Envoy's
	// xDS server TLS key.
	XdsTLSKeyFilepath = "/certs/tls.key"
	// XdsTLSCaFilepath is the fully qualified path of the file containing Envoy's
	// trusted CA certificate.
	XdsTLSCaFilepath = "/certs/ca.crt"

	// XdsTLSCaFileName is the file name of the xDS server TLS certificate.
	XdsTLSCaFileName = "ca.crt"
)

Variables

This section is empty.

Functions

func EnvoyAppLabel

func EnvoyAppLabel() map[string]string

EnvoyAppLabel returns the labels used for all Envoy resources.

func EnvoyAppLabelSelector

func EnvoyAppLabelSelector() []string

EnvoyAppLabelSelector returns the labels used for all Envoy resources.

func ExpectedResourceHashedName

func ExpectedResourceHashedName(name string) string

ExpectedResourceHashedName returns expected resource hashed name including up to the 48 characters of the original name.

func OwningGatewayLabelsAbsent added in v1.0.0

func OwningGatewayLabelsAbsent(labels map[string]string) bool

OwningGatewayLabelsAbsent Check if labels are missing some OwningGatewayLabels

Types

type KubernetesInfraProvider added in v1.4.1

type KubernetesInfraProvider interface {
	GetControllerNamespace() string
	GetDNSDomain() string
	GetEnvoyGateway() *egv1a1.EnvoyGateway
	GetOwnerReferenceUID(ctx context.Context, infra *ir.Infra) (map[string]types.UID, error)
	GetResourceNamespace(ir *ir.Infra) string
}

KubernetesInfraProvider provide information for initializing the proxy resource render.

type ResourceRender

type ResourceRender struct {

	// DNSDomain is the dns domain used by k8s services. Defaults to "cluster.local".
	DNSDomain string

	ShutdownManager *egv1a1.ShutdownManager

	GatewayNamespaceMode bool
	// contains filtered or unexported fields
}

func NewResourceRender

func NewResourceRender(ctx context.Context, kubernetesInfra KubernetesInfraProvider, infra *ir.Infra) (*ResourceRender, error)

func (*ResourceRender) ConfigMap

func (r *ResourceRender) ConfigMap(cert string) (*corev1.ConfigMap, error)

ConfigMap returns the expected ConfigMap based on the provided infra.

func (*ResourceRender) ControllerNamespace added in v1.4.0

func (r *ResourceRender) ControllerNamespace() string

func (*ResourceRender) DaemonSet added in v1.1.0

func (r *ResourceRender) DaemonSet() (*appsv1.DaemonSet, error)

func (*ResourceRender) Deployment

func (r *ResourceRender) Deployment() (*appsv1.Deployment, error)

Deployment returns the expected Deployment based on the provided infra.

func (*ResourceRender) HorizontalPodAutoscaler added in v1.0.0

func (r *ResourceRender) HorizontalPodAutoscaler() (*autoscalingv2.HorizontalPodAutoscaler, error)

func (*ResourceRender) LabelSelector added in v1.2.0

func (r *ResourceRender) LabelSelector() labels.Selector

func (*ResourceRender) Name

func (r *ResourceRender) Name() string

func (*ResourceRender) Namespace

func (r *ResourceRender) Namespace() string

func (*ResourceRender) OwnerReferences added in v1.4.1

func (r *ResourceRender) OwnerReferences() []metav1.OwnerReference

func (*ResourceRender) PodDisruptionBudget added in v1.1.0

func (r *ResourceRender) PodDisruptionBudget() (*policyv1.PodDisruptionBudget, error)

func (*ResourceRender) Service

func (r *ResourceRender) Service() (*corev1.Service, error)

Service returns the expected Service based on the provided infra.

func (*ResourceRender) ServiceAccount

func (r *ResourceRender) ServiceAccount() (*corev1.ServiceAccount, error)

ServiceAccount returns the expected proxy serviceAccount.

Jump to

Keyboard shortcuts

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