Skip to content

Commit

Permalink
Extra containers can now be added to artifacthub pod (#4056)
Browse files Browse the repository at this point in the history
Signed-off-by: Goran Novak <goran.novak@adcubum.com>
Co-authored-by: Goran Novak <goran.novak@adcubum.com>
  • Loading branch information
pteroctopus and gnovak-adc authored Sep 27, 2024
1 parent e57a6fc commit b4e5fbf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/artifact-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/artifact-hub/templates/hub_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions charts/artifact-hub/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions charts/artifact-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4e5fbf

Please sign in to comment.