From 32422d891beeadb87cbcffa7c0417f49434dcedc Mon Sep 17 00:00:00 2001 From: Fabrizio Fortino Date: Mon, 21 Jan 2019 22:12:50 +0000 Subject: [PATCH] [stable/schema-registry-ui] add support for service annotations, documented missing params in README (#10806) Signed-off-by: Fabrizio Fortino --- stable/schema-registry-ui/Chart.yaml | 2 +- stable/schema-registry-ui/README.md | 14 +++++++++++--- stable/schema-registry-ui/templates/service.yaml | 6 ++++++ stable/schema-registry-ui/values.yaml | 1 + 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/stable/schema-registry-ui/Chart.yaml b/stable/schema-registry-ui/Chart.yaml index dbd1018b5f..ce499eb095 100644 --- a/stable/schema-registry-ui/Chart.yaml +++ b/stable/schema-registry-ui/Chart.yaml @@ -10,7 +10,7 @@ keywords: - Kafka - avro - schema-registry -version: 0.1.1 +version: 0.2.1 maintainers: - email: cristian04@gmail.com name: cristian04 diff --git a/stable/schema-registry-ui/README.md b/stable/schema-registry-ui/README.md index df028499c6..7afb159a34 100644 --- a/stable/schema-registry-ui/README.md +++ b/stable/schema-registry-ui/README.md @@ -62,9 +62,17 @@ The following table lists the configurable parameters of the SchemaRegistryUI ch | `image.repository` | The `SchemaRegistryUI` image repository | `landoop/schema-registry-ui` | | `image.tag` | The `SchemaRegistryUI` image tag | `0.9.4` | | `image.imagePullPolicy` | Image Pull Policy | `IfNotPresent` | -| `service.type` | Type of the service | `LoadBalancer` | -| `service.port` | Port to use | `80` | -| `ingress.enabled` | Ingress rules. Disabled by default | `false` | | `schemaRegistry.url` | URL to the schema registry endpoint | `http://localhost` | | `schemaRegistry.port` | Port for the schema registry | `8081` | +| `service.type` | Type of the service | `LoadBalancer` | +| `service.port` | Port to use | `80` | +| `service.annotations` | Kubernetes service annotations | `{}` | +| `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 | `{}` | | `resources` | CPU/Memory resource requests/limits | `{}` | diff --git a/stable/schema-registry-ui/templates/service.yaml b/stable/schema-registry-ui/templates/service.yaml index e5cda07302..74fe7647ab 100644 --- a/stable/schema-registry-ui/templates/service.yaml +++ b/stable/schema-registry-ui/templates/service.yaml @@ -7,6 +7,12 @@ metadata: chart: {{ template "schema-registry-ui.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- with .Values.service.annotations }} + annotations: + {{- range $key, $value := . }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/stable/schema-registry-ui/values.yaml b/stable/schema-registry-ui/values.yaml index 20f4151da3..d8967cf5e9 100644 --- a/stable/schema-registry-ui/values.yaml +++ b/stable/schema-registry-ui/values.yaml @@ -12,6 +12,7 @@ image: service: type: LoadBalancer port: 80 + annotations: {} schemaRegistry: url: "http://localhost"