Skip to content
Snippets Groups Projects
Commit 5f082bc0 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Merge pull request #1172 from mattymo/dnsmasq_upgrade

Use checksum of dnsmasq config to trigger updates of dnsmasq
parents 0e3b7127 8b0b500c
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,12 @@ ...@@ -35,7 +35,12 @@
backup: yes backup: yes
register: dnsmasq_config register: dnsmasq_config
- name: Stat dnsmasq configuration - name: Stat dnsmasq link
stat:
path: /etc/dnsmasq.d-available/01-kube-dns.conf
register: dnsmasq_stat
- name: Stat dnsmasq link
stat: stat:
path: /etc/dnsmasq.d/01-kube-dns.conf path: /etc/dnsmasq.d/01-kube-dns.conf
register: sym register: sym
......
...@@ -12,11 +12,14 @@ spec: ...@@ -12,11 +12,14 @@ spec:
selector: selector:
matchLabels: matchLabels:
k8s-app: dnsmasq k8s-app: dnsmasq
strategy:
type: "Recreate"
template: template:
metadata: metadata:
labels: labels:
k8s-app: dnsmasq k8s-app: dnsmasq
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
kargo/dnsmasq-checksum: "{{ dnsmasq_stat.stat.checksum }}"
spec: spec:
containers: containers:
- name: dnsmasq - name: dnsmasq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment