Skip to content

Commit 15bb990

Browse files
committed
feat(helm): name prefix for nat gws
1 parent 246a255 commit 15bb990

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/kube-ovn/templates/natGw/vpc-nat-config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ data:
1111
{{- with .Values.natGw.bgpSpeaker.apiNadProvider }}
1212
apiNadProvider: {{ tpl . $ }}
1313
{{- end }}
14+
{{- with .Values.natGw.namePrefix }}
15+
natGwNamePrefix: {{ . | quote }}
16+
{{- end }}
1417

1518
---
1619
kind: ConfigMap

charts/kube-ovn/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ natGw:
158158
# -- Network attachment definition used to reach the API server when running on BGP mode
159159
# See https://kubeovn.github.io/docs/stable/en/advance/with-bgp/
160160
apiNadProvider: "{{ .Values.apiNad.name }}.{{ .Values.namespace }}.ovn"
161+
# -- Prefix appended to the name of the NAT gateways when generating the Pods
162+
# If this value is changed after NAT GWs have been provisioned, every NAT gateway will need to be
163+
# manually destroyed and recreated.
164+
namePrefix: "vpc-nat-gw"
161165

162166
# -- API NetworkAttachmentDefinition to give some pods (CoreDNS, NAT GW) in custom VPCs access to the K8S API
163167
# This requires Multus to be installed

0 commit comments

Comments
 (0)