Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3572 from shashankram/gateway-flag
Browse files Browse the repository at this point in the history
osm-gateway: add feature flag
  • Loading branch information
shashankram authored Jun 10, 2021
2 parents 8d0ec91 + 8e5571e commit 9684c97
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 8 deletions.
5 changes: 3 additions & 2 deletions charts/osm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ The following table lists the configurable parameters of the osm chart and their
| OpenServiceMesh.enablePrivilegedInitContainer | bool | `false` | Run init container in privileged mode |
| OpenServiceMesh.enforceSingleMesh | bool | `false` | Enforce only deploying one mesh in the cluster |
| OpenServiceMesh.envoyLogLevel | string | `"error"` | Log level for the Envoy proxy sidecar |
| OpenServiceMesh.featureFlags.enableEgressPolicy | bool | `true` | Enable OSM's Egress policy API. If specified, fine grained control over Egress (external) traffic is enforced |
| OpenServiceMesh.featureFlags.enableMulticlusterMode | bool | `false` | Enable Multicluster mode. If specified, multicluster mode will be enabled in OSM |
| OpenServiceMesh.featureFlags.enableEgressPolicy | bool | `true` | Enable OSM's Egress policy API If specified, fine grained control over Egress (external) traffic is enforced |
| OpenServiceMesh.featureFlags.enableMulticlusterMode | bool | `false` | Enable Multicluster mode If specified, multicluster mode will be enabled in OSM |
| OpenServiceMesh.featureFlags.enableOSMGateway | bool | `false` | Enable OSM gateway for ingress or multicluster |
| OpenServiceMesh.featureFlags.enableWASMStats | bool | `true` | Enable extra Envoy statistics generated by a custom WASM extension |
| OpenServiceMesh.fluentBit.enableProxySupport | bool | `false` | Enable proxy support toggle for Fluent Bit |
| OpenServiceMesh.fluentBit.httpProxy | string | `""` | Optional HTTP proxy endpoint for Fluent Bit |
Expand Down
15 changes: 13 additions & 2 deletions charts/osm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@
"webhookConfigNamePrefix",
"osmController",
"enablePrivilegedInitContainer",
"injector"
"injector",
"featureFlags"
],
"properties": {
"osmController": {
Expand Down Expand Up @@ -673,7 +674,8 @@
"required": [
"enableWASMStats",
"enableEgressPolicy",
"enableMulticlusterMode"
"enableMulticlusterMode",
"enableOSMGateway"
],
"properties": {
"enableWASMStats": {
Expand Down Expand Up @@ -702,6 +704,15 @@
"examples": [
true
]
},
"enableOSMGateway": {
"$id": "#/properties/OpenServiceMesh/properties/featureFlags/properties/enableOSMGateway",
"type": "boolean",
"title": "Enable OSM gateway",
"description": "Enable OSM gateway for ingress or multicluster",
"examples": [
true
]
}
},
"additionalProperties": false
Expand Down
8 changes: 5 additions & 3 deletions charts/osm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,18 @@ OpenServiceMesh:
featureFlags:
# -- Enable extra Envoy statistics generated by a custom WASM extension
enableWASMStats: true
# -- Enable OSM's Egress policy API.
# -- Enable OSM's Egress policy API
# If specified, fine grained control over Egress (external) traffic is enforced
enableEgressPolicy: true
# -- Enable Multicluster mode.
# -- Enable Multicluster mode
# If specified, multicluster mode will be enabled in OSM
enableMulticlusterMode: false
# -- Enable OSM gateway for ingress or multicluster
enableOSMGateway: false

# -- Run OSM with PodSecurityPolicy configured
pspEnabled: false

# -- Node tolerations applied to control plane pods.
# The specified tolerations allow pods to schedule onto nodes with matching taints.
controlPlaneTolerations: []
controlPlaneTolerations: []
5 changes: 4 additions & 1 deletion pkg/apis/config/v1alpha1/mesh_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ type FeatureFlags struct {
// EnableMulticlusterMode defines if Multicluster mode is enabled.
EnableMulticlusterMode bool `json:"enableMulticlusterMode,omitempty"`

// EnableSnapshotCacheMode defines if XDS server starts with snapshot cache
// EnableSnapshotCacheMode defines if XDS server starts with snapshot cache.
EnableSnapshotCacheMode bool `json:"enableSnapshotCacheMode,omitempty"`

// EnableOSMGateway defines if OSM gateway is enabled.
EnableOSMGateway bool `json:"enableOSMGateway,omitempty"`
}
17 changes: 17 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit 9684c97

Please sign in to comment.