Skip to content

Commit

Permalink
Merge pull request #69 from jouve/hnc
Browse files Browse the repository at this point in the history
set dnsPolicy: ClusterFirstWithHostNet when hostNetwork is true
  • Loading branch information
jouve authored Feb 10, 2025
2 parents af62632 + 09964b9 commit 716d09c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hnc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: hnc
description: Hierarchical Namespace Controller (HNC). Policies and delegated creation to Kubernetes namespaces.
icon: https://raw.githubusercontent.com/KDE/breeze-icons/master/icons/actions/16/view-list-tree.svg
type: application
version: 0.8.0
version: 0.8.1
appVersion: v1.1.0
dependencies:
- name: common
Expand Down
3 changes: 3 additions & 0 deletions charts/hnc/templates/replication/controller-manager-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
hostNetwork: {{ .Values.hostNetwork }}
{{- if .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
containers:
- args:
- --webhook-server-port=9443
Expand Down
3 changes: 3 additions & 0 deletions charts/hnc/templates/replication/controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
spec:
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.image) "context" $) | nindent 6 }}
hostNetwork: {{ .Values.hostNetwork }}
{{- if .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
containers:
- args:
- --webhook-server-port=9443
Expand Down
3 changes: 3 additions & 0 deletions charts/hnc/templates/standalone/controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
spec:
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.image) "context" $) | nindent 6 }}
hostNetwork: {{ .Values.hostNetwork }}
{{- if .Values.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
containers:
- args:
- --webhook-server-port=9443
Expand Down

0 comments on commit 716d09c

Please sign in to comment.