From 68478b27c533bc44b8bf0eaa8d694b098714e9bb Mon Sep 17 00:00:00 2001 From: Goran Novak Date: Thu, 26 Sep 2024 23:44:40 +0200 Subject: [PATCH] Extra containers can now be added to artifacthub pod Signed-off-by: Goran Novak --- charts/artifact-hub/Chart.yaml | 2 +- charts/artifact-hub/templates/hub_deployment.yaml | 3 +++ charts/artifact-hub/values.schema.json | 6 ++++++ charts/artifact-hub/values.yaml | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/artifact-hub/Chart.yaml b/charts/artifact-hub/Chart.yaml index f2e56d6ea..f7a6bac8c 100644 --- a/charts/artifact-hub/Chart.yaml +++ b/charts/artifact-hub/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: artifact-hub description: Artifact Hub is a web-based application that enables finding, installing, and publishing Cloud Native packages. type: application -version: 1.19.1-1 +version: 1.19.1-2 appVersion: 1.19.0 kubeVersion: ">= 1.19.0-0" home: https://artifacthub.io diff --git a/charts/artifact-hub/templates/hub_deployment.yaml b/charts/artifact-hub/templates/hub_deployment.yaml index e29cd35a6..6ca2d8630 100644 --- a/charts/artifact-hub/templates/hub_deployment.yaml +++ b/charts/artifact-hub/templates/hub_deployment.yaml @@ -94,6 +94,9 @@ spec: readinessProbe: {{- toYaml .Values.hub.deploy.readinessProbe | nindent 12}} {{- end }} + {{- if .Values.hub.deploy.extraContainers }} + {{- include "chart.tplvalues.render" (dict "value" .Values.hub.deploy.extraContainers "context" $) | nindent 8 }} + {{- end }} volumes: - name: hub-config secret: diff --git a/charts/artifact-hub/values.schema.json b/charts/artifact-hub/values.schema.json index b0f2a26a5..099f3814f 100644 --- a/charts/artifact-hub/values.schema.json +++ b/charts/artifact-hub/values.schema.json @@ -283,6 +283,12 @@ "type": "array", "default": "[]" }, + "extraContainers": { + "title": "Extra containers", + "description": "Optionally specify extra list of additional containers for the hub deployment", + "type": "array", + "default": "[]" + }, "image": { "type": "object", "properties": { diff --git a/charts/artifact-hub/values.yaml b/charts/artifact-hub/values.yaml index 13d659897..91c79b4fc 100644 --- a/charts/artifact-hub/values.yaml +++ b/charts/artifact-hub/values.yaml @@ -184,6 +184,8 @@ hub: extraVolumeMounts: [] # Optionally specify a node selector for the hub deployment nodeSelector: {} + # Optionally specify extra list of additional containers for the hub deployment + extraContainers: [] server: # Allow adding private repositories to the Hub allowPrivateRepositories: false