Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Enable namespaced brokers by default (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkhahn authored and k8s-ci-robot committed Aug 2, 2018
1 parent ac6df03 commit 94100a8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions charts/catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ chart and their default values.
| `rbacEnable` | If true, create & use RBAC resources | `true` |
| `originatingIdentityEnabled` | Whether the OriginatingIdentity alpha feature should be enabled | `false` |
| `asyncBindingOperationsEnabled` | Whether or not alpha support for async binding operations is enabled | `false` |
| `namespacedServiceBrokerDisabled` | Whether or not alpha support for namespace scoped brokers is disabled | `false` |

Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`.
Expand Down
4 changes: 2 additions & 2 deletions charts/catalog/templates/apiserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ spec:
- --feature-gates
- OriginatingIdentity=true
{{- end }}
{{- if .Values.namespacedServiceBrokerEnabled }}
{{- if .Values.namespacedServiceBrokerDisabled }}
- --feature-gates
- NamespacedServiceBroker=true
- NamespacedServiceBroker=false
{{- end }}
{{- if .Values.apiserver.serveOpenAPISpec }}
- --serve-openapi-spec
Expand Down
4 changes: 2 additions & 2 deletions charts/catalog/templates/controller-manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ spec:
- --feature-gates
- CatalogRestrictions=true
{{- end }}
{{- if .Values.namespacedServiceBrokerEnabled }}
{{- if .Values.namespacedServiceBrokerDisabled }}
- --feature-gates
- NamespacedServiceBroker=true
- NamespacedServiceBroker=false
{{- end }}
ports:
- containerPort: 8444
Expand Down
4 changes: 2 additions & 2 deletions charts/catalog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,5 @@ controllerManager:
originatingIdentityEnabled: false
# Whether the AsyncBindingOperations alpha feature should be enabled
asyncBindingOperationsEnabled: false
# Whether the NamespacedServiceBroker alpha feature should be enabled
namespacedServiceBrokerEnabled: false
# Whether the NamespacedServiceBroker alpha feature should be disabled
namespacedServiceBrokerDisabled: false
10 changes: 5 additions & 5 deletions docs/namespaced-broker-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,21 @@ services and plans, however, can be effectively combined with Kubernetes RBAC
and Service Catalog [Catalog Restrictions](catalog-restrictions.md) in order to provide more granular
control over service instance provisioning.

## Enabling Namespace Scoped Broker Resources
## Disabling Namespace Scoped Broker Resources

Currently, namespace-scoped broker resources are an alpha-feature of Service
Catalog behind a feature flag. To start using these resources, you will need
Catalog that is on by default. To disable use of these resources, you will need
to pass an argument to the API Server when you install Service Catalog:
`--feature-gates NamespacedServiceBroker=true`.
`--feature-gates NamespacedServiceBroker=false`.

If you are using Helm, you can use the `namespacedServiceBrokerEnabled` setting
If you are using Helm, you can use the `namespacedServiceBrokerDisabled` setting
to control that flag:

```console
helm install svc-cat/catalog \
--name catalog \
--namespace catalog \
--set namespacedServiceBrokerEnabled=true
--set namespacedServiceBrokerDisabled=true
```

## Using Namespace Scoped Broker Resources
Expand Down
2 changes: 1 addition & 1 deletion pkg/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var defaultServiceCatalogFeatureGates = map[utilfeature.Feature]utilfeature.Feat
PodPreset: {Default: false, PreRelease: utilfeature.Alpha},
OriginatingIdentity: {Default: false, PreRelease: utilfeature.Alpha},
AsyncBindingOperations: {Default: false, PreRelease: utilfeature.Alpha},
NamespacedServiceBroker: {Default: false, PreRelease: utilfeature.Alpha},
NamespacedServiceBroker: {Default: true, PreRelease: utilfeature.Alpha},
ResponseSchema: {Default: false, PreRelease: utilfeature.Alpha},
UpdateDashboardURL: {Default: false, PreRelease: utilfeature.Alpha},
OriginatingIdentityLocking: {Default: true, PreRelease: utilfeature.Alpha},
Expand Down

0 comments on commit 94100a8

Please sign in to comment.