Skip to content

Commit

Permalink
feat(charts): fix wrong charts values
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Oct 1, 2020
1 parent ec99a21 commit c82e6ce
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
3 changes: 1 addition & 2 deletions helm/akhq/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ version: 0.1.3
keywords:
- kafka
- confluent
- timeseries
- influxdata
- gui
home: https://akhq.io
icon: https://raw.githubusercontent.com/tchiotludo/akhq/master/assets/img/logo_black.png
sources:
Expand Down
18 changes: 8 additions & 10 deletions helm/akhq/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "akhq.fullname" . }}
{{- with .Values.image.annotations }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down Expand Up @@ -53,15 +53,13 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | default "Always" }}
env:
{{- if .Values.secrets }}
- name: MICRONAUT_ENVIRONMENTS
value: secrets
- name: MICRONAUT_CONFIG_FILES
value: /app/application.yml,/app/application-secrets.yml
{{- end }}
{{- with .Values.image.extraEnv }}
{{ toYaml . | trim | indent 10 }}
{{- end }}
{{- if $.Values.extraEnv }}{{ toYaml $.Values.extraEnv | trim | nindent 12 }}{{ end }}
{{- if .Values.secrets }}
- name: MICRONAUT_ENVIRONMENTS
value: secrets
- name: MICRONAUT_CONFIG_FILES
value: /app/application.yml,/app/application-secrets.yml
{{- end }}
volumeMounts:
{{- if .Values.extraVolumeMounts }}{{ toYaml .Values.extraVolumeMounts | trim | nindent 12 }}{{ end }}
{{- if .Values.configuration }}
Expand Down
32 changes: 18 additions & 14 deletions helm/akhq/values.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
#imagePullSecrets:
# imagePullSecrets:
# - name: my-repository-secret
image:
repository: tchiotludo/akhq
tag: latest
annotations: {}
#prometheus.io/scrape: 'true'
#prometheus.io/port: '8080'
#prometheus.io/path: '/metrics'
extraEnv: []
## You can put directly your configuration here...
# - name: AKHQ_CONFIGURATION
# value: |
# akhq:
# secrets:
# docker-kafka-server:
# properties:
# bootstrap.servers: "kafka:9092"

# custom annotations (example: for prometheus)
annotations: {}
#prometheus.io/scrape: 'true'
#prometheus.io/port: '8080'
#prometheus.io/path: '/prometheus'

## You can put directly your configuration here... or add java opts or any other env vars
extraEnv: []
# - name: AKHQ_CONFIGURATION
# value: |
# akhq:
# secrets:
# docker-kafka-server:
# properties:
# bootstrap.servers: "kafka:9092"
# - name: JAVA_OPTS
# value: "-Djavax.net.ssl.trustStore=/usr/local/openjdk-11/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=password"

## Or you can also use configmap for the configuration...
configuration: |
Expand Down

0 comments on commit c82e6ce

Please sign in to comment.