Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion api/v1alpha1/envoygateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,27 @@ type KubernetesWatchMode struct {
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}

const (
// KubernetesDeployModeTypeControllerNamespace indicates that the controller namespace is used for the infra proxy deployments.
KubernetesDeployModeTypeControllerNamespace = "ControllerNamespace"

// KubernetesDeployModeTypeGatewayNamespace indicates that the gateway namespace is used for the infra proxy deployments.
KubernetesDeployModeTypeGatewayNamespace = "GatewayNamespace"
)

// KubernetesDeployModeType defines the type of KubernetesDeployMode
type KubernetesDeployModeType string

// KubernetesDeployMode holds configuration for how to deploy managed resources such as the Envoy Proxy
// data plane fleet.
type KubernetesDeployMode struct {
// TODO
// Type indicates what deployment mode to use. "ControllerNamespace" and
// "GatewayNamespace" are currently supported.
// By default, when this field is unset or empty, Envoy Gateway will deploy Envoy Proxy fleet in the Controller namespace.
// +optional
// +kubebuilder:default=ControllerNamespace
// +kubebuilder:validation:Enum=ControllerNamespace;GatewayNamespace
Type *KubernetesDeployModeType `json:"type,omitempty"`
}

// EnvoyGatewayCustomProvider defines configuration for the Custom provider.
Expand Down
7 changes: 6 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,20 @@ data plane fleet.
_Appears in:_
- [EnvoyGatewayKubernetesProvider](#envoygatewaykubernetesprovider)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | _[KubernetesDeployModeType](#kubernetesdeploymodetype)_ | false | Type indicates what deployment mode to use. "ControllerNamespace" and<br />"GatewayNamespace" are currently supported.<br />By default, when this field is unset or empty, Envoy Gateway will deploy Envoy Proxy fleet in the Controller namespace. |


#### KubernetesDeployModeType

_Underlying type:_ _string_

KubernetesDeployModeType defines the type of KubernetesDeployMode

_Appears in:_
- [KubernetesDeployMode](#kubernetesdeploymode)



#### KubernetesDeploymentSpec
Expand Down
14 changes: 14 additions & 0 deletions site/content/zh/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,20 @@ data plane fleet.
_Appears in:_
- [EnvoyGatewayKubernetesProvider](#envoygatewaykubernetesprovider)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | _[KubernetesDeployModeType](#kubernetesdeploymodetype)_ | false | Type indicates what deployment mode to use. "ControllerNamespace" and<br />"GatewayNamespace" are currently supported.<br />By default, when this field is unset or empty, Envoy Gateway will deploy Envoy Proxy fleet in the Controller namespace. |


#### KubernetesDeployModeType

_Underlying type:_ _string_

KubernetesDeployModeType defines the type of KubernetesDeployMode

_Appears in:_
- [KubernetesDeployMode](#kubernetesdeploymode)



#### KubernetesDeploymentSpec
Expand Down
Loading