From 24fcde5f2ebbdce2eab1a10697417b208b44c58d Mon Sep 17 00:00:00 2001 From: Jan Breitkopf <103336573+kyrbrbik@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:09:13 +0100 Subject: [PATCH] add extra containers for postiz --- charts/postiz/Chart.yaml | 2 +- charts/postiz/templates/postiz-deployment.yaml | 5 ++++- charts/postiz/templates/postiz-service.yaml | 5 ++++- charts/postiz/values.yaml | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/charts/postiz/Chart.yaml b/charts/postiz/Chart.yaml index 25a901e..e145255 100644 --- a/charts/postiz/Chart.yaml +++ b/charts/postiz/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: postiz-app description: A Social Media Scheduling App type: application -version: 1.0.4 +version: 1.0.5 appVersion: "1.3.0" maintainers: - name: jonathan-irvin diff --git a/charts/postiz/templates/postiz-deployment.yaml b/charts/postiz/templates/postiz-deployment.yaml index 2deac03..fa1a6a1 100644 --- a/charts/postiz/templates/postiz-deployment.yaml +++ b/charts/postiz/templates/postiz-deployment.yaml @@ -51,6 +51,9 @@ spec: name: {{ include "postiz.fullname" . }}-secrets resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.extraContainers }} + {{- toYaml .Values.extraContainers | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -69,4 +72,4 @@ spec: {{- else }} - name: uploads-volume emptyDir: {} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/postiz/templates/postiz-service.yaml b/charts/postiz/templates/postiz-service.yaml index 40ec72b..99e4d13 100644 --- a/charts/postiz/templates/postiz-service.yaml +++ b/charts/postiz/templates/postiz-service.yaml @@ -11,5 +11,8 @@ spec: targetPort: http protocol: TCP name: http + {{- if .Values.service.additionalPorts }} + {{- toYaml .Values.service.additionalPorts | nindent 4 }} + {{- end }} selector: - {{- include "postiz.selectorLabels" . | nindent 4 }} \ No newline at end of file + {{- include "postiz.selectorLabels" . | nindent 4 }} diff --git a/charts/postiz/values.yaml b/charts/postiz/values.yaml index 0799cdf..94e8120 100644 --- a/charts/postiz/values.yaml +++ b/charts/postiz/values.yaml @@ -23,6 +23,7 @@ securityContext: {} service: type: ClusterIP port: 80 + additionalPorts: [] ingress: enabled: false # Disabled by default @@ -44,6 +45,8 @@ ingress: resources: {} +extraContainers: [] + extraVolumes: [] extraVolumeMounts: []