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 #2605 from snehachhabria/Routesv2Cutover
Browse files Browse the repository at this point in the history
feat(routesv2) : Cut over OSM to build routes using routes v2
  • Loading branch information
snehachhabria authored Feb 24, 2021
2 parents 8a19278 + bcf2f90 commit 95ed095
Show file tree
Hide file tree
Showing 37 changed files with 33 additions and 1,189 deletions.
5 changes: 0 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ export BOOKWAREHOUSE_NAMESPACE=bookwarehouse
# Default: debug
# export ENVOY_LOG_LEVEL=debug

# optional: ROUTES_V2 (true/false) - Enables experimental routes v2 feature
# Default: false
# export ROUTES_V2=false
#--------------------------------------

### The section below configures certificates management
### OSM has 2 ways to manage certificates
### Set CERT_MANAGER to "tresor" to use the internal system (relies on k8s secrets)
Expand Down
1 change: 0 additions & 1 deletion charts/osm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ The following table lists the configurable parameters of the osm chart and their
| OpenServiceMesh.enableFluentbit | bool | `false` | Enable Fluent Bit sidecar deployment |
| OpenServiceMesh.enablePermissiveTrafficPolicy | bool | `false` | Enable permissive traffic policy mode |
| OpenServiceMesh.enablePrometheusScraping | bool | `true` | Enable Prometheus metrics scraping on sidecar proxies |
| OpenServiceMesh.enableRoutesV2Experimental | bool | `false` | Enable experimental routes feature |
| OpenServiceMesh.enforceSingleMesh | bool | `false` | Enforce only deploying one mesh in the cluster |
| OpenServiceMesh.envoyLogLevel | string | `"error"` | Envoy log level is used to specify the level of logs collected from envoy |
| OpenServiceMesh.fluentBit.enableProxySupport | bool | `false` | Enable proxy support toggle for Fluent Bit |
Expand Down
3 changes: 0 additions & 3 deletions charts/osm/templates/osm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ spec:
"--cert-manager-issuer-name", "{{.Values.OpenServiceMesh.certmanager.issuerName}}",
"--cert-manager-issuer-kind", "{{.Values.OpenServiceMesh.certmanager.issuerKind}}",
"--cert-manager-issuer-group", "{{.Values.OpenServiceMesh.certmanager.issuerGroup}}",
{{- if .Values.OpenServiceMesh.enableRoutesV2Experimental }}
"--enable-routes-v2-experimental",
{{- end }}
]
resources:
limits:
Expand Down
2 changes: 0 additions & 2 deletions charts/osm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ OpenServiceMesh:
enableDebugServer: false
# -- Enable permissive traffic policy mode
enablePermissiveTrafficPolicy: false
# -- Enable experimental routes feature
enableRoutesV2Experimental: false
# -- Enable egress in the mesh
enableEgress: false
# -- Deploy Prometheus
Expand Down
7 changes: 0 additions & 7 deletions cmd/cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const (
defaultEnableDebugServer = false
defaultEnableEgress = false
defaultEnablePermissiveTrafficPolicy = false
defaultEnableRoutesV2Experimental = false
defaultDeployPrometheus = false
defaultEnablePrometheusScraping = true
defaultDeployGrafana = false
Expand Down Expand Up @@ -114,10 +113,6 @@ type installCmd struct {
chartRequested *chart.Chart
setOptions []string

// This is an experimental flag, which results in using
// the experimental routes v2 feature
enableRoutesV2Experimental bool

// Toggle to enable/disable Prometheus installation
deployPrometheus bool

Expand Down Expand Up @@ -180,7 +175,6 @@ func newInstallCmd(config *helm.Configuration, out io.Writer) *cobra.Command {
f.BoolVar(&inst.enableDebugServer, "enable-debug-server", defaultEnableDebugServer, "Enable the debug HTTP server")
f.BoolVar(&inst.enablePermissiveTrafficPolicy, "enable-permissive-traffic-policy", defaultEnablePermissiveTrafficPolicy, "Enable permissive traffic policy mode")
f.BoolVar(&inst.enableEgress, "enable-egress", defaultEnableEgress, "Enable egress in the mesh")
f.BoolVar(&inst.enableRoutesV2Experimental, "enable-routes-v2-experimental", defaultEnableRoutesV2Experimental, "Enable experimental routes v2 feature")
f.BoolVar(&inst.deployPrometheus, "deploy-prometheus", defaultDeployPrometheus, "Install and deploy Prometheus")
f.BoolVar(&inst.enablePrometheusScraping, "enable-prometheus-scraping", defaultEnablePrometheusScraping, "Enable Prometheus metrics scraping on sidecar proxies")
f.BoolVar(&inst.deployGrafana, "deploy-grafana", defaultDeployGrafana, "Install and deploy Grafana")
Expand Down Expand Up @@ -260,7 +254,6 @@ func (i *installCmd) resolveValues() (map[string]interface{}, error) {
fmt.Sprintf("OpenServiceMesh.prometheus.retention.time=%s", i.prometheusRetentionTime),
fmt.Sprintf("OpenServiceMesh.enableDebugServer=%t", i.enableDebugServer),
fmt.Sprintf("OpenServiceMesh.enablePermissiveTrafficPolicy=%t", i.enablePermissiveTrafficPolicy),
fmt.Sprintf("OpenServiceMesh.enableRoutesV2Experimental=%t", i.enableRoutesV2Experimental),
fmt.Sprintf("OpenServiceMesh.deployPrometheus=%t", i.deployPrometheus),
fmt.Sprintf("OpenServiceMesh.enablePrometheusScraping=%t", i.enablePrometheusScraping),
fmt.Sprintf("OpenServiceMesh.deployGrafana=%t", i.deployGrafana),
Expand Down
2 changes: 0 additions & 2 deletions cmd/cli/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,6 @@ func getDefaultInstallCmd(writer io.Writer) installCmd {
enableEgress: defaultEnableEgress,
enablePermissiveTrafficPolicy: defaultEnablePermissiveTrafficPolicy,
clientSet: fake.NewSimpleClientset(),
enableRoutesV2Experimental: defaultEnableRoutesV2Experimental,
deployPrometheus: defaultDeployPrometheus,
enablePrometheusScraping: defaultEnablePrometheusScraping,
deployGrafana: defaultDeployGrafana,
Expand Down Expand Up @@ -871,7 +870,6 @@ func getDefaultValues() map[string]interface{} {
}},
"enableDebugServer": defaultEnableDebugServer,
"enablePermissiveTrafficPolicy": defaultEnablePermissiveTrafficPolicy,
"enableRoutesV2Experimental": defaultEnableRoutesV2Experimental,
"enableEgress": defaultEnableEgress,
"deployPrometheus": defaultDeployPrometheus,
"enablePrometheusScraping": defaultEnablePrometheusScraping,
Expand Down
3 changes: 0 additions & 3 deletions cmd/osm-controller/osm-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ func init() {
flags.StringVar(&certManagerOptions.IssuerKind, "cert-manager-issuer-kind", "Issuer", "cert-manager issuer kind")
flags.StringVar(&certManagerOptions.IssuerGroup, "cert-manager-issuer-group", "cert-manager.io", "cert-manager issuer group")

// feature flags
flags.BoolVar(&optionalFeatures.RoutesV2, "enable-routes-v2-experimental", false, "Enable experimental routes v2 feature")

_ = clientgoscheme.AddToScheme(scheme)
_ = v1beta1.AddToScheme(scheme)
}
Expand Down
2 changes: 2 additions & 0 deletions demo/deploy-bookstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
ports:
- port: 80
name: bookstore-port
selector:
app: bookstore
EOF

echo -e "Deploy $SVC Service Account"
Expand Down
3 changes: 0 additions & 3 deletions demo/run-osm-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ DEPLOY_PROMETHEUS="${DEPLOY_PROMETHEUS:-false}"
ENABLE_PROMETHEUS_SCRAPING="${ENABLE_PROMETHEUS_SCRAPING:-true}"
DEPLOY_WITH_SAME_SA="${DEPLOY_WITH_SAME_SA:-false}"
ENVOY_LOG_LEVEL="${ENVOY_LOG_LEVEL:-debug}"
ROUTES_V2="${ROUTES_V2:-false}"

# For any additional installation arguments. Used heavily in CI.
optionalInstallArgs=$*
Expand Down Expand Up @@ -106,7 +105,6 @@ if [ "$CERT_MANAGER" = "vault" ]; then
--enable-prometheus-scraping="$ENABLE_PROMETHEUS_SCRAPING" \
--envoy-log-level "$ENVOY_LOG_LEVEL" \
--timeout=90s \
--enable-routes-v2-experimental="$ROUTES_V2" \
$optionalInstallArgs
else
# shellcheck disable=SC2086
Expand All @@ -127,7 +125,6 @@ else
--enable-prometheus-scraping="$ENABLE_PROMETHEUS_SCRAPING" \
--envoy-log-level "$ENVOY_LOG_LEVEL" \
--timeout=90s \
--enable-routes-v2-experimental="$ROUTES_V2" \
$optionalInstallArgs
fi

Expand Down
56 changes: 0 additions & 56 deletions experimental/routes_refactor/demo/README.md

This file was deleted.

57 changes: 0 additions & 57 deletions experimental/routes_refactor/demo/manifests/bookbuyer.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions experimental/routes_refactor/demo/manifests/bookstore-v1.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions experimental/routes_refactor/demo/manifests/bookstore-v2.yaml

This file was deleted.

Loading

0 comments on commit 95ed095

Please sign in to comment.