Skip to content

Commit

Permalink
feat: Allow annotations for ingress resource
Browse files Browse the repository at this point in the history
  • Loading branch information
toneill-newinnov committed Dec 14, 2023
1 parent 298a16a commit 578a4fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions chart/dapr-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ helm install dapr-dashboard dapr/dapr-dashboard
| `ingress.host` | Fully qualified hostname of the dashboard URL (e.g `dashboard.dapr.local`) | `` |
| `ingress.tls.enabled` | If true, enables TLS on the ingress for the Dashboard | `false` |
| `ingress.tls.secretName` | Name of the Kubernetes secret containing the TLS certificate (key/certificate) for the Dashboard. Ignored if `dapr_dashboard.ingress.tls.enabled` is `false`. | `` |
| `ingress.annotations` | Annotations for the ingress resource | `{}` |
| `registry` | Docker image registry | `docker.io/daprio` |
| `tag` | Docker image version tag | latest release |
| `logAsJson` | Json log format for control plane services | `false` |
Expand Down
4 changes: 4 additions & 0 deletions chart/dapr-dashboard/templates/dapr_dashboard_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
{{- range $key, $value := .Values.k8sLabels }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
Expand Down
5 changes: 3 additions & 2 deletions chart/dapr-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ component: dashboard
image:
registry: docker.io/daprio
name: dashboard
tag: 'edge'
tag: "edge"
imagePullPolicy: IfNotPresent
imagePullSecrets: ""

Expand All @@ -24,6 +24,7 @@ ingress:
tls:
enabled: false
secretName:
annotations: {}

runAsNonRoot: true
serviceType: ClusterIP
Expand All @@ -48,4 +49,4 @@ k8sLabels:
app.kubernetes.io/name: "dapr-dashboard"
app.kubernetes.io/version: "{{ .Values.image.tag }}"
app.kubernetes.io/part-of: "dapr"
app.kubernetes.io/managed-by: "helm"
app.kubernetes.io/managed-by: "helm"

0 comments on commit 578a4fc

Please sign in to comment.