Skip to content

Commit 7846499

Browse files
authored
Merge pull request #176 from xrstf/host-aliases-agent
Add/fix support for hostAliases in all Helm charts
2 parents 04c0f40 + ed094cb commit 7846499

File tree

13 files changed

+23
-10
lines changed

13 files changed

+23
-10
lines changed

charts/api-syncagent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: api-syncagent
33
description: A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp.
44

55
# version information
6-
version: 0.4.2
6+
version: 0.4.3
77
appVersion: "v0.4.2"
88

99
# optional metadata

charts/api-syncagent/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ spec:
7575
capabilities:
7676
drop:
7777
- ALL
78+
{{- if .Values.hostAliases.enabled }}
79+
hostAliases:
80+
{{- toYaml .Values.hostAliases.values | nindent 12 }}
81+
{{- end }}
7882
volumeMounts:
7983
- name: kcp-kubeconfig
8084
mountPath: /etc/api-syncagent/kcp

charts/api-syncagent/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,9 @@ extraVolumes: []
8787
extraVolumeMounts: []
8888
# - name: extra-secret
8989
# mountPath: /etc/test
90+
91+
hostAliases:
92+
enabled: false
93+
values:
94+
ip: ""
95+
hostnames: []

charts/cache/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: cache
33
description: A cache server for prototype of a multi-tenant Kubernetes control plane for workloads on many clusters
44

55
# version information
6-
version: 0.0.4
6+
version: 0.0.5
77
appVersion: "0.22.0"
88

99
# optional metadata

charts/cache/templates/cache-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
{{- end }}
4646
{{- if .Values.cache.hostAliases.enabled }}
4747
hostAliases:
48-
{{- toYaml .Values.cache.hostAliases.values | nindent 6 }}
48+
{{- toYaml .Values.cache.hostAliases.values | nindent 8 }}
4949
{{- end }}
5050
{{- if .Values.global.imagePullSecrets }}
5151
imagePullSecrets:

charts/cache/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ cache:
2929
memory: 1Gi
3030
hostAliases:
3131
enabled: false
32+
values:
33+
ip: ""
34+
hostnames: []
3235
securityContext:
3336
seccompProfile:
3437
type: RuntimeDefault

charts/kcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: kcp
33
description: A prototype of a multi-tenant Kubernetes control plane for workloads on many clusters
44

55
# version information
6-
version: 0.12.5
6+
version: 0.12.6
77
appVersion: "0.28.3"
88

99
# optional metadata

charts/kcp/templates/front-proxy-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
{{- end }}
6363
{{- if .Values.kcpFrontProxy.hostAliases.enabled }}
6464
hostAliases:
65-
{{- toYaml .Values.kcpFrontProxy.hostAliases.values | nindent 6 }}
65+
{{- toYaml .Values.kcpFrontProxy.hostAliases.values | nindent 8 }}
6666
{{- end }}
6767
{{- with .Values.kcpFrontProxy.affinity}}
6868
affinity:

charts/kcp/templates/server-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ spec:
9696
{{- end }}
9797
{{- if .Values.kcp.hostAliases.enabled }}
9898
hostAliases:
99-
{{- toYaml .Values.kcp.hostAliases.values | nindent 6 }}
99+
{{- toYaml .Values.kcp.hostAliases.values | nindent 8 }}
100100
{{- end }}
101101
{{- with .Values.kcp.affinity}}
102102
affinity:

charts/proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: proxy
33
description: A prototype of a multi-tenant Kubernetes control plane for workloads on many clusters
44

55
# version information
6-
version: 0.0.3
6+
version: 0.0.4
77
appVersion: "0.22.0"
88

99
# optional metadata

0 commit comments

Comments
 (0)