allow to configure service labels for backend and frontend
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
This commit is contained in:
@@ -244,6 +244,7 @@ The password should be provided with the `SHUFFLE_OPENSEARCH_PASSWORD` env varia
|
|||||||
| `backend.autoscaling.hpa.maxReplicas` | Maximum number of replicas | `""` |
|
| `backend.autoscaling.hpa.maxReplicas` | Maximum number of replicas | `""` |
|
||||||
| `backend.autoscaling.hpa.targetCPU` | Target CPU utilization percentage | `""` |
|
| `backend.autoscaling.hpa.targetCPU` | Target CPU utilization percentage | `""` |
|
||||||
| `backend.autoscaling.hpa.targetMemory` | Target Memory utilization percentage | `""` |
|
| `backend.autoscaling.hpa.targetMemory` | Target Memory utilization percentage | `""` |
|
||||||
|
| `backend.service.labels` | Extra labels for backend service | `{}` |
|
||||||
| `backend.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
| `backend.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
||||||
| `backend.serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
|
| `backend.serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
|
||||||
| `backend.serviceAccount.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` |
|
| `backend.serviceAccount.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` |
|
||||||
@@ -359,6 +360,7 @@ The password should be provided with the `SHUFFLE_OPENSEARCH_PASSWORD` env varia
|
|||||||
| `frontend.autoscaling.hpa.maxReplicas` | Maximum number of replicas | `""` |
|
| `frontend.autoscaling.hpa.maxReplicas` | Maximum number of replicas | `""` |
|
||||||
| `frontend.autoscaling.hpa.targetCPU` | Target CPU utilization percentage | `""` |
|
| `frontend.autoscaling.hpa.targetCPU` | Target CPU utilization percentage | `""` |
|
||||||
| `frontend.autoscaling.hpa.targetMemory` | Target Memory utilization percentage | `""` |
|
| `frontend.autoscaling.hpa.targetMemory` | Target Memory utilization percentage | `""` |
|
||||||
|
| `frontend.service.labels` | Extra labels for frontend service | `{}` |
|
||||||
| `frontend.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
| `frontend.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
||||||
| `frontend.serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
|
| `frontend.serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
|
||||||
| `frontend.serviceAccount.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` |
|
| `frontend.serviceAccount.annotations` | Additional Service Account annotations (evaluated as a template) | `{}` |
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ template "shuffle.backend.name" . }}
|
name: {{ template "shuffle.backend.name" . }}
|
||||||
namespace: {{ include "common.names.namespace" . | quote }}
|
namespace: {{ include "common.names.namespace" . | quote }}
|
||||||
labels: {{- include "shuffle.backend.labels" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }}
|
{{- $serviceLabels := include "common.tplvalues.merge" (dict "values" (list .Values.backend.service.labels .Values.commonLabels) "context" .) }}
|
||||||
|
labels: {{- include "shuffle.backend.labels" (dict "customLabels" $serviceLabels "context" $) | nindent 4 }}
|
||||||
{{- if .Values.commonAnnotations }}
|
{{- if .Values.commonAnnotations }}
|
||||||
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
|
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ template "shuffle.frontend.name" . }}
|
name: {{ template "shuffle.frontend.name" . }}
|
||||||
namespace: {{ include "common.names.namespace" . | quote }}
|
namespace: {{ include "common.names.namespace" . | quote }}
|
||||||
labels: {{- include "shuffle.frontend.labels" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }}
|
{{- $serviceLabels := include "common.tplvalues.merge" (dict "values" (list .Values.frontend.service.labels .Values.commonLabels) "context" .) }}
|
||||||
|
labels: {{- include "shuffle.frontend.labels" (dict "customLabels" $serviceLabels "context" $) | nindent 4 }}
|
||||||
{{- if .Values.commonAnnotations }}
|
{{- if .Values.commonAnnotations }}
|
||||||
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
|
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -683,6 +683,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"service": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Extra labels for backend service",
|
||||||
|
"default": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"serviceAccount": {
|
"serviceAccount": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -1362,6 +1372,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"service": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Extra labels for frontend service",
|
||||||
|
"default": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"serviceAccount": {
|
"serviceAccount": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -421,6 +421,14 @@ backend:
|
|||||||
targetCPU: ""
|
targetCPU: ""
|
||||||
targetMemory: ""
|
targetMemory: ""
|
||||||
|
|
||||||
|
## Service configuration
|
||||||
|
##
|
||||||
|
service:
|
||||||
|
## @param backend.service.labels Extra labels for backend service
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||||
|
##
|
||||||
|
labels: {}
|
||||||
|
|
||||||
## ServiceAccount configuration
|
## ServiceAccount configuration
|
||||||
##
|
##
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
@@ -870,6 +878,14 @@ frontend:
|
|||||||
targetCPU: ""
|
targetCPU: ""
|
||||||
targetMemory: ""
|
targetMemory: ""
|
||||||
|
|
||||||
|
## Service configuration
|
||||||
|
##
|
||||||
|
service:
|
||||||
|
## @param frontend.service.labels Extra labels for frontend service
|
||||||
|
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||||
|
##
|
||||||
|
labels: {}
|
||||||
|
|
||||||
## ServiceAccount configuration
|
## ServiceAccount configuration
|
||||||
##
|
##
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
|
|||||||
Reference in New Issue
Block a user