Skip to content

Commit

Permalink
[stable/schema-registry-ui] add support for service loadBalancerSourc…
Browse files Browse the repository at this point in the history
…eRanges (helm#10823)

* [stable/schema-registry-ui] add support for service loadBalancerSourceRanges

Signed-off-by: Fabrizio Fortino <[email protected]>

* Update Chart.yaml

Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
fabriziofortino authored and k8s-ci-robot committed Jan 27, 2019
1 parent edbc986 commit 5fbd56c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/schema-registry-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords:
- Kafka
- avro
- schema-registry
version: 0.2.1
version: 0.3.0
maintainers:
- email: [email protected]
name: cristian04
3 changes: 2 additions & 1 deletion stable/schema-registry-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ The following table lists the configurable parameters of the SchemaRegistryUI ch
| `service.type` | Type of the service | `LoadBalancer` |
| `service.port` | Port to use | `80` |
| `service.annotations` | Kubernetes service annotations | `{}` |
| `service.loadBalancerSourceRanges` | Limit load balancer source IPs to list of CIDRs (where available)) | None |
| `ingress.enabled` | Ingress rules. Disabled by default | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.path` | Ingress path | `/` |
| `ingress.hosts` | Ingress accepted hostnames | `[schema-registry-ui.local]` |
| `ingress.tls` | Ingress TLS configuration | `/` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Node/pod affinites | `{}` |
| `affinity` | Node/pod affinities | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
6 changes: 6 additions & 0 deletions stable/schema-registry-ui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range $cidr := .Values.service.loadBalancerSourceRanges }}
- {{ $cidr }}
{{- end }}
{{- end }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
Expand Down
2 changes: 2 additions & 0 deletions stable/schema-registry-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ service:
type: LoadBalancer
port: 80
annotations: {}
## Limit load balancer source ips to list of CIDRs (where available)
# loadBalancerSourceRanges: []

schemaRegistry:
url: "http://localhost"
Expand Down

0 comments on commit 5fbd56c

Please sign in to comment.