Skip to content

Commit

Permalink
Allow specifying spec.ingressClassName for hub ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Gerten <[email protected]>
  • Loading branch information
armingerten committed Nov 15, 2023
1 parent 2d4c934 commit 10c3191
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
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 Kubernetes packages.
type: application
version: 1.16.1-2
version: 1.16.1-3
appVersion: 1.16.0
kubeVersion: ">= 1.19.0-0"
home: https://artifacthub.io
Expand Down
3 changes: 3 additions & 0 deletions charts/artifact-hub/templates/hub_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.hub.ingress.ingressClassName }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.hub.ingress.defaultBackendEnabled }}
defaultBackend:
service:
Expand Down
17 changes: 7 additions & 10 deletions charts/artifact-hub/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,16 +389,7 @@
"annotations": {
"title": "Hub ingress annotations",
"type": "object",
"properties": {
"kubernetes.io/ingress.class": {
"title": "Hub ingress class",
"type": "string",
"default": "nginx"
}
},
"required": [
"kubernetes.io/ingress.class"
]
"default": {}
},
"enabled": {
"title": "Enable Hub ingress",
Expand All @@ -410,6 +401,12 @@
"type": "object",
"default": {}
},
"ingressClassName": {
"title": "Hub ingress class",
"description": "The ingress class used for `spec.ingressClassName`",
"type": "string",
"default": ""
},
"defaultBackendEnabled": {
"title": "Enable default backend for Hub Ingress",
"type": "boolean",
Expand Down
4 changes: 2 additions & 2 deletions charts/artifact-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ dbMigrator:
hub:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
ingressClassName: ""
annotations: {}
extraLabels: {}
defaultBackendEnabled: true
rules: []
Expand Down

0 comments on commit 10c3191

Please sign in to comment.