Skip to content

Commit 7a963e3

Browse files
committed
api: support infra deployment in the gateway namespace
Signed-off-by: Karol Szwaj <[email protected]>
1 parent c6d5a54 commit 7a963e3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

api/v1alpha1/envoygateway_types.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,24 @@ type KubernetesWatchMode struct {
254254
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
255255
}
256256

257+
const (
258+
// KubernetesDeployModeTypeControllerNamespace indicates that the controller namespace is used for the infra proxy deployments.
259+
KubernetesDeployModeTypeControllerNamespace = "ControllerNamespace"
260+
261+
// KubernetesDeployModeTypeGatewayNamespace indicates that the gateway namespace is used for the infra proxy deployments.
262+
KubernetesDeployModeTypeGatewayNamespace = "GatewayNamespace"
263+
)
264+
265+
// KubernetesWatKubernetesDeployModeTypechModeType defines the type of KubernetesWatchMode
266+
type KubernetesDeployModeType string
267+
257268
// KubernetesDeployMode holds configuration for how to deploy managed resources such as the Envoy Proxy
258269
// data plane fleet.
259270
type KubernetesDeployMode struct {
260-
// TODO
271+
// Type indicates what deploy mode to use. KubernetesDeployModeTypeControllerNamespace and
272+
// KubernetesDeployModeTypeGatewayNamespace are currently supported.
273+
// By default, when this field is unset or empty, Envoy Gateway will deploy Envoy Proxy fleet in the Controller namespace.
274+
Type KubernetesDeployModeType `json:"type,omitempty"`
261275
}
262276

263277
// EnvoyGatewayCustomProvider defines configuration for the Custom provider.

0 commit comments

Comments
 (0)