Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable/node-local-dns] support podlabels and ds labels, annotations #506

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/node-local-dns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: node-local-dns
version: 1.1.4
version: 1.1.5
appVersion: 1.22.20
maintainers:
- name: gabrieladt
Expand Down
5 changes: 4 additions & 1 deletion stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-local-dns

![Version: 1.1.4](https://img.shields.io/badge/Version-1.1.4-informational?style=flat-square) ![AppVersion: 1.22.20](https://img.shields.io/badge/AppVersion-1.22.20-informational?style=flat-square)
![Version: 1.1.5](https://img.shields.io/badge/Version-1.1.5-informational?style=flat-square) ![AppVersion: 1.22.20](https://img.shields.io/badge/AppVersion-1.22.20-informational?style=flat-square)

A chart to install node-local-dns.

Expand Down Expand Up @@ -57,6 +57,8 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| config.setupInterface | bool | `false` | |
| config.setupIptables | bool | `false` | |
| config.skipTeardown | bool | `true` | |
| daemonsetAnnotations | object | `{}` | |
| daemonsetLabels | object | `{}` | |
| dashboard.annotations | object | `{}` | |
| dashboard.enabled | bool | `false` | |
| dashboard.label | string | `"grafana_dashboard"` | |
Expand All @@ -67,6 +69,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| podAnnotations | object | `{}` | |
| podLabels | object | `{}` | |
| resources.limits.memory | string | `"128Mi"` | |
| resources.requests.cpu | string | `"25m"` | |
| resources.requests.memory | string | `"128Mi"` | |
Expand Down
10 changes: 10 additions & 0 deletions stable/node-local-dns/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ kind: DaemonSet
metadata:
name: {{ include "node-local-dns.fullname" . }}
namespace: kube-system
{{- with .Values.daemonsetAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "node-local-dns.labels" . | nindent 4 }}
{{- with .Values.daemonsetLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
updateStrategy:
rollingUpdate:
Expand All @@ -15,6 +22,9 @@ spec:
template:
metadata:
labels:
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
k8s-app: {{ include "node-local-dns.name" . }}
{{- if or .Values.podAnnotations (not .Values.serviceMonitor.enabled) }}
annotations:
Expand Down
6 changes: 6 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ serviceAccount:

podAnnotations: {}

podLabels: {}

daemonsetAnnotations: {}

daemonsetLabels: {}

securityContext:
capabilities:
add:
Expand Down
Loading