Add possibility to add some custom labels for ingress (#3295)

Signed-off-by: Patrice MEYER <patrice.meyer@groupama.com>
This commit is contained in:
pmeyer34 2023-08-29 16:03:52 +02:00 committed by GitHub
parent 053763fcbf
commit 252f83adf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: artifact-hub
description: Artifact Hub is a web-based application that enables finding, installing, and publishing Kubernetes packages.
type: application
version: 1.15.0
version: 1.15.1-0
appVersion: 1.15.0
kubeVersion: ">= 1.19.0-0"
home: https://artifacthub.io

View File

@ -4,6 +4,9 @@ kind: Ingress
metadata:
name: {{ include "chart.resourceNamePrefix" . }}hub
labels:
{{- with .Values.hub.ingress.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
app.kubernetes.io/component: hub
{{- include "chart.labels" . | nindent 4 }}
{{- with .Values.hub.ingress.annotations }}

View File

@ -381,6 +381,11 @@
"type": "boolean",
"default": true
},
"extraLabels": {
"title": "Some extra labels to add to the ingress",
"type": "object",
"default": {}
},
"defaultBackendEnabled": {
"title": "Enable default backend for Hub Ingress",
"type": "boolean",

View File

@ -108,6 +108,7 @@ hub:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
extraLabels: {}
defaultBackendEnabled: true
rules: []
tls: []