Files
charts/bitnami/spring-cloud-dataflow/templates/skipper/configmap.yaml
Bitnami Bot 8eedbf4027 [bitnami/spring-cloud-dataflow] Release 15.0.2 (#14358)
* [bitnami/spring-cloud-dataflow] Release 15.0.2 updating components versions

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Removes unneeded database dialect

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Try with a higher timeout

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Updates the cypress tests to match the UI of the new spring boot version

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Reverts timeout increase

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

* Updates UI string

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>
Co-authored-by: Rafael Rios Saavedra <rrios@vmware.com>
2023-01-23 17:23:06 +01:00

131 lines
7.1 KiB
YAML

{{- if (include "scdf.skipper.createConfigmap" .) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "scdf.fullname" . }}-skipper
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: skipper
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
application.yaml: |-
{{- if .Values.metrics.enabled }}
{{- $fullname := include "scdf.fullname" . }}
{{- $rsocketPort := int (coalesce .Values.metrics.service.ports.rsocket .Values.metrics.service.rsocketPort) }}
management:
metrics:
export:
prometheus:
enabled: true
rsocket:
enabled: true
host: {{ $fullname }}-prometheus-proxy
port: {{ $rsocketPort }}
{{- end }}
spring:
cloud:
skipper:
server:
platform:
kubernetes:
accounts:
{{ .Values.skipper.configuration.accountName }}:
{{- $environmentVariables := include "scdf.deployer.environmentVariables" . }}
{{- if or (.Values.rabbitmq.enabled) (.Values.externalRabbitmq.enabled) }}
{{- $rabbitmqHost := include "scdf.rabbitmq.host" . }}
{{- $rabbitmqPort := include "scdf.rabbitmq.port" . }}
{{- $rabbitmqUser := include "scdf.rabbitmq.user" . }}
{{- $rabbitmqVhost := include "scdf.rabbitmq.vhost" . }}
environmentVariables:
- SPRING_RABBITMQ_HOST={{ $rabbitmqHost }}
- SPRING_RABBITMQ_PORT={{ $rabbitmqPort }}
- SPRING_RABBITMQ_USERNAME={{ $rabbitmqUser }}
- SPRING_RABBITMQ_PASSWORD=${rabbitmq-password}
- SPRING_RABBITMQ_VIRTUAL_HOST={{ $rabbitmqVhost }}
{{- if $environmentVariables }}
{{- $environmentVariables | nindent 22 }}
{{- end }}
{{- else if .Values.kafka.enabled }}
environmentVariables:
- SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS=${{ printf "{" }}{{ .Release.Name }}_KAFKA_SERVICE_HOST}:${{ printf "{" }}{{ .Release.Name }}_KAFKA_SERVICE_PORT}
- SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES=${{ printf "{" }}{{ .Release.Name }}_ZOOKEEPER_SERVICE_HOST}:${{ printf "{" }}{{ .Release.Name }}_ZOOKEEPER_SERVICE_PORT}
{{- if $environmentVariables }}
{{- $environmentVariables | nindent 22 }}
{{- end }}
{{- else if .Values.externalKafka.enabled }}
environmentVariables:
- SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS={{ .Values.externalKafka.brokers }}
- SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES={{ .Values.externalKafka.zkNodes }}
{{- if $environmentVariables }}
{{- $environmentVariables | nindent 22 }}
{{- end }}
{{- else }}
{{- if $environmentVariables }}
environmentVariables: {{- $environmentVariables | trim | nindent 22 }}
{{- end }}
{{- end }}
{{- if .Values.deployer.resources.limits }}
limits: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.resources.limits "context" $) | trim | nindent 22 }}
{{- end }}
{{- if .Values.deployer.resources.requests }}
requests: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.resources.requests "context" $) | trim | nindent 22 }}
{{- end }}
{{- if .Values.deployer.readinessProbe.initialDelaySeconds }}
readinessProbeDelay: {{ .Values.deployer.readinessProbe.initialDelaySeconds }}
{{- end }}
{{- if .Values.deployer.livenessProbe.initialDelaySeconds }}
livenessProbeDelay: {{ .Values.deployer.livenessProbe.initialDelaySeconds }}
{{- end }}
{{- if .Values.deployer.nodeSelector }}
nodeSelector: {{ .Values.deployer.nodeSelector }}
{{- end }}
{{- if .Values.deployer.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.tolerations "context" $) | nindent 22 }}
{{- end }}
{{- if .Values.deployer.volumeMounts }}
volumeMounts: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.volumeMounts "context" $) | nindent 22 }}
{{- end }}
{{- if .Values.deployer.volumes }}
volumes: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.volumes "context" $) | nindent 22 }}
{{- end }}
{{- if .Values.deployer.podSecurityContext.enabled }}
podSecurityContext: {{- omit .Values.deployer.podSecurityContext "enabled" | toYaml | nindent 22 }}
{{- end }}
{{- if .Values.deployer.imagePullSecrets }}
imagePullSecrets: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.imagePullSecrets "context" $) | nindent 22 }}
{{- end }}
{{- if .Values.deployer.secretRefs }}
secretRefs: {{- include "common.tplvalues.render" (dict "value" .Values.deployer.secretRefs "context" $) | nindent 22 }}
{{- end }}
{{- if .Values.deployer.entryPointStyle }}
entryPointStyle: {{ .Values.deployer.entryPointStyle }}
{{- end }}
{{- if .Values.deployer.imagePullPolicy }}
imagePullPolicy: {{ .Values.deployer.imagePullPolicy }}
{{- end }}
{{- if .Values.externalDatabase.hibernateDialect }}
jpa:
properties:
hibernate:
dialect: {{- printf "%s" .Values.externalDatabase.hibernateDialect -}}
{{- end }}
datasource:
url: '{{ include "scdf.database.skipper.url" . }}'
driverClassName: {{ include "scdf.database.driver" . }}
username: {{ include "scdf.database.skipper.user" . }}
{{ if .Values.externalDatabase.existingPasswordSecret }}
password: {{ .Values.externalDatabase.existingPasswordKey | default "datasource-password" | printf "${%s}" }}
{{- else -}}
password: ${mariadb-password}
{{- end }}
testOnBorrow: true
validationQuery: "SELECT 1"
flyway:
enabled: {{ .Values.flyway.enabled }}
{{ end }}