diff --git a/charts/kafka-ui/Chart.yaml b/charts/kafka-ui/Chart.yaml index c48bb1bfd3d..edd0394864c 100644 --- a/charts/kafka-ui/Chart.yaml +++ b/charts/kafka-ui/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kafka-ui -description: A Helm chart for kafka-UI +description: A Helm chart for Kafka-UI type: application -version: 0.7.0 -appVersion: v0.7.0 +version: 0.7.2 +appVersion: v0.7.2 icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png diff --git a/charts/kafka-ui/templates/route.yaml b/charts/kafka-ui/templates/route.yaml new file mode 100644 index 00000000000..24ef6cee555 --- /dev/null +++ b/charts/kafka-ui/templates/route.yaml @@ -0,0 +1,26 @@ +{{- if .Values.route.enabled -}} +{{- $fullName := include "kafka-ui.fullname" . -}} +{{- $svcPort := (eq (int .Values.service.port) 80) | ternary "http" .Values.service.port -}} +kind: Route +apiVersion: route.openshift.io/v1 +metadata: + name: {{ $fullName }} + labels: + {{- include "kafka-ui.labels" . | nindent 4 }} + {{- with .Values.route.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + to: + kind: Service + name: {{ $fullName }} + weight: 100 + port: + targetPort: {{ $svcPort | quote }} + {{- if .Values.route.tls.enabled }} + tls: + termination: {{ .Values.route.tls.termination }} + insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }} + {{- end }} +{{- end }} diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 3c30b408134..d28380c198e 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -130,6 +130,23 @@ ingress: # Http paths to add to the Ingress after the default path succeedingPaths: [] +# OpenShift Route configuration +route: + # Enable OpenShift Route resource + enabled: false + + # Annotations for OpenShift Route + annotations: {} + + # configs for OpenShift Route TLS + tls: + # Enable TLS termination for the OpenShift Route + enabled: false + # TLS termination + termination: edge + # Insecure Edge Termination Policy + insecureEdgeTerminationPolicy: Redirect + resources: {} # limits: