Compare commits

...

3 Commits

Author SHA1 Message Date
f67ac05610 fix indentation 2024-04-13 23:05:03 -06:00
7803519d04 add major version value 2024-04-13 22:58:01 -06:00
55e63c2c72 fix minor formatting and remove uneeded values 2024-04-13 22:31:07 -06:00
6 changed files with 48 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: postgres-cluster name: postgres-cluster
version: 2.1.0 version: 2.2.0
description: Chart for cloudnative-pg cluster description: Chart for cloudnative-pg cluster
keywords: keywords:
- database - database

View File

@@ -5,8 +5,7 @@ Expand the name of the chart.
{{- if .Values.nameOverride }} {{- if .Values.nameOverride }}
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- else }} {{- else }}
{{ $version := split "." .Values.cluster.image.tag }} {{- printf "postgresql-%s-%s" .Values.cluster.image.majorVersion .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- printf "postgresql-%s-%s" $version._0 .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@@ -24,6 +24,7 @@ cluster:
image: image:
repository: ghcr.io/cloudnative-pg/postgresql repository: ghcr.io/cloudnative-pg/postgresql
tag: "16.2" tag: "16.2"
majorVersion: "16"
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# The UID and GID of the postgres user inside the image # The UID and GID of the postgres user inside the image

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: taiga name: taiga
version: 0.1.1 version: 0.1.3
description: Chart for Taiga description: Chart for Taiga
keywords: keywords:
- kanban - kanban

View File

@@ -48,49 +48,49 @@ spec:
{{ toYaml . | nindent 8 }} {{ toYaml . | nindent 8 }}
{{- end }} {{- end }}
containers: containers:
- name: {{ template "taiga.fullname" . }}-events - name: {{ template "taiga.fullname" . }}-events
image: "{{ .Values.events.image.repository }}:{{ .Values.events.image.tag }}" image: "{{ .Values.events.image.repository }}:{{ .Values.events.image.tag }}"
imagePullPolicy: {{ .Values.events.image.pullPolicy }} imagePullPolicy: {{ .Values.events.image.pullPolicy }}
resources: resources:
{{ toYaml .Values.events.resources | nindent 12 }} {{ toYaml .Values.events.resources | nindent 12 }}
ports: ports:
- name: taiga-events - name: taiga-events
containerPort: {{ .Values.events.service.port }} containerPort: {{ .Values.events.service.port }}
protocol: TCP protocol: TCP
env: env:
- name: TAIGA_SECRET_KEY - name: TAIGA_SECRET_KEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.secretKey.existingSecretName }}" name: "{{ .Values.secretKey.existingSecretName }}"
key: "{{ .Values.secretKey.existingSecretKey }}" key: "{{ .Values.secretKey.existingSecretKey }}"
- name: RABBITMQ_USER - name: RABBITMQ_USER
value: "{{ index .Values "taiga-events-rabbitmq" "auth" "username" }}" value: "{{ index .Values "taiga-events-rabbitmq" "auth" "username" }}"
- name: RABBITMQ_PASS - name: RABBITMQ_PASS
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ index .Values "taiga-events-rabbitmq" "auth" "existingPasswordSecret" }} name: {{ index .Values "taiga-events-rabbitmq" "auth" "existingPasswordSecret" }}
key: {{ index .Values "taiga-events-rabbitmq" "auth" "existingSecretPasswordKey" }} key: {{ index .Values "taiga-events-rabbitmq" "auth" "existingSecretPasswordKey" }}
{{- if .Values.events.livenessProbe.enabled }} {{- if .Values.events.livenessProbe.enabled }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /admin/login/ path: /admin/login/
port: {{ .Values.events.service.port }} port: {{ .Values.events.service.port }}
initialDelaySeconds: {{ .Values.events.livenessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.events.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.events.livenessProbe.periodSeconds }} periodSeconds: {{ .Values.events.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.events.livenessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.events.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.events.livenessProbe.successThreshold }} successThreshold: {{ .Values.events.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.events.livenessProbe.failureThreshold }} failureThreshold: {{ .Values.events.livenessProbe.failureThreshold }}
{{- end }} {{- end }}
{{- if .Values.events.readinessProbe.enabled }} {{- if .Values.events.readinessProbe.enabled }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /admin/login/ path: /admin/login/
port: {{ .Values.events.service.port }} port: {{ .Values.events.service.port }}
initialDelaySeconds: {{ .Values.events.readinessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.events.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.events.readinessProbe.periodSeconds }} periodSeconds: {{ .Values.events.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.events.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.events.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.events.readinessProbe.successThreshold }} successThreshold: {{ .Values.events.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.events.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.events.readinessProbe.failureThreshold }}
{{- end }} {{- end }}

View File

@@ -402,14 +402,6 @@ events:
## ##
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## events-taiga rabbitmq credentials
## Must match to events-rabbitmq.auth.username and events-rabbitmq.auth.password
## I don't use events-rabbitmq values because this bug: https://github.com/helm/helm/issues/2192
rabbitmq:
auth:
username: taiga
password: taiga
## Pod Security Context ## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
## ##