deprecation

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package deprecation reports the deprecated API fields in use, so that users are warned before they are removed.

Index

Constants

View Source
const DeprecatedFieldsRemovalRelease = "v1.11"

DeprecatedFieldsRemovalRelease is the release that removes the deprecated fields tracked in https://github.com/envoyproxy/gateway/issues/10211.

Variables

This section is empty.

Functions

func AddDeprecatedBackendClusterFields

func AddDeprecatedBackendClusterFields(fields map[string]DeprecatedField, path string, cluster *egv1a1.BackendCluster, host *string)

AddDeprecatedBackendClusterFields records the deprecated fields used in the BackendCluster at path: backendRef, the legacy host of the owning sink (if any), and the consistent hash fields of its backendSettings. Port is not checked here, see AddDeprecatedEnvoyProxySpecFields.

func AddDeprecatedEnvoyProxySpecFields

func AddDeprecatedEnvoyProxySpecFields(fields map[string]DeprecatedField, path string, spec *egv1a1.EnvoyProxySpec, explicitPorts bool)

AddDeprecatedEnvoyProxySpecFields records the deprecated fields used in the EnvoyProxy spec at path, which is "spec" for an EnvoyProxy resource and "envoyProxy" for the EnvoyGateway default.

explicitPorts reports whether every nonzero telemetry port was set by the user. It is false for an EnvoyProxy resource, whose ports always carry the CRD default, so only a port other than that default is known to be explicit there. It is true for the EnvoyGateway default, which is loaded from the EnvoyGateway configuration without CRD defaulting, so any nonzero port there is explicit. An explicit port is deprecated even without host.

func AddDeprecatedLoadBalancerFields

func AddDeprecatedLoadBalancerFields(fields map[string]DeprecatedField, path string, lb *egv1a1.LoadBalancer)

AddDeprecatedLoadBalancerFields records the deprecated consistent hash fields used in the LoadBalancer at path.

func WarnEnvoyGateway

func WarnEnvoyGateway(eg *egv1a1.EnvoyGateway) []string

WarnEnvoyGateway returns deprecation warnings for the provided EnvoyGateway configuration.

Types

type DeprecatedField

type DeprecatedField struct {
	// Replacement is the field to use instead.
	Replacement string
	// RemovedIn is the release the field is scheduled to be removed in, if any.
	RemovedIn string
}

DeprecatedField describes the replacement for a deprecated field.

func (DeprecatedField) Message

func (f DeprecatedField) Message(path string) string

Message returns the warning message for the deprecated field at path.

Jump to

Keyboard shortcuts

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