[stable/cockroachdb] labels for cockroachdb service (#18233)

* Add labels to cockroachdb service and servicediscovery-service
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

* update README.md to cover new values
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

* Chart version bump
Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>

Signed-off-by: Tobias Paepke <tobias.paepke@paepke.net>
This commit is contained in:
Tobias Paepke
2019-10-23 11:06:58 -07:00
committed by Kubernetes Prow Robot
parent 50d5e6c9dd
commit be4c085ce6
5 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: cockroachdb
home: https://www.cockroachlabs.com
version: 2.1.15
version: 2.1.16
appVersion: 19.1.5
description: CockroachDB is a scalable, survivable, strongly-consistent SQL database.
icon: https://raw.githubusercontent.com/cockroachdb/cockroach/master/docs/media/cockroach_db.png
+2
View File
@@ -190,6 +190,8 @@ The following table lists the configurable parameters of the CockroachDB chart a
| `NetworkPolicy.AllowExternal` | Don't require client label for connections | `true` |
| `Service.Type` | Public service type | `ClusterIP` |
| `Service.Annotations` | Annotations to apply to the service | `{}` |
| `Service.labels` | Labels to apply to the service | `{}` |
| `ServiceDiscovery.labels` | Labels to apply to the service for discovery | `{}` |
| `PodManagementPolicy` | `OrderedReady` or `Parallel` pod creation/deletion order | `Parallel` |
| `UpdateStrategy.type` | allows setting of RollingUpdate strategy | `RollingUpdate` |
| `NodeSelector` | Node labels for pod assignment | `{}` |
@@ -11,6 +11,9 @@ metadata:
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
{{- if .Values.ServiceDiscovery.labels }}
{{ toYaml .Values.ServiceDiscovery.labels | indent 4 }}
{{- end }}
annotations:
# Use this annotation in addition to the actual field below because the
# annotation will stop being respected soon but the field is broken in
@@ -11,6 +11,9 @@ metadata:
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
{{- if .Values.Service.labels }}
{{ toYaml .Values.Service.labels | indent 4 }}
{{- end }}
spec:
type: {{ .Values.Service.type }}
ports:
+3
View File
@@ -59,6 +59,9 @@ NetworkPolicy:
Service:
type: ClusterIP
annotations: {}
labels: {}
ServiceDiscovery:
labels: {}
PodManagementPolicy: Parallel
UpdateStrategy:
type: RollingUpdate