Skip to content

Commit 7e7fc12

Browse files
committed
feat: allow vpcTag to be specified to override tag
1 parent 171505c commit 7e7fc12

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

charts/kube-ovn-v2/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ false
528528
"support_arm": true,
529529
"tag": "v1.14.0",
530530
"thirdparty": true,
531-
"vpcRepository": "vpc-nat-gateway"
531+
"vpcRepository": "vpc-nat-gateway",
532+
"vpcTag": ""
532533
}
533534
},
534535
"registry": {
@@ -1512,6 +1513,15 @@ false
15121513
</td>
15131514
<td>IPv6 CIDR.</td>
15141515
</tr>
1516+
<tr>
1517+
<td>networking.skipConntrackDstCidrs</td>
1518+
<td>string</td>
1519+
<td><pre lang="json">
1520+
""
1521+
</pre>
1522+
</td>
1523+
<td>Comma-separated list of destination IP CIDRs that should skip conntrack processing.</td>
1524+
</tr>
15151525
<tr>
15161526
<td>networking.stack</td>
15171527
<td>string</td>

charts/kube-ovn-v2/templates/nat-gw/vpc-nat-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: ovn-vpc-nat-config
55
namespace: {{ .Values.namespace }}
66
data:
7-
image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ .Values.global.images.kubeovn.tag }}
7+
image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ or .Values.global.images.kubeovn.vpcTag .Values.global.images.kubeovn.tag }}
88
{{- with .Values.natGw.bgpSpeaker.image }}
99
bgpSpeakerImage: {{ .repository }}:{{ .tag }}
1010
{{- end }}

charts/kube-ovn-v2/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ global:
99
repository: kube-ovn
1010
vpcRepository: vpc-nat-gateway
1111
tag: v1.14.0
12+
# If empty, uses the same tag as kubeovn
13+
vpcTag: ""
1214
support_arm: true
1315
thirdparty: true
1416

@@ -264,7 +266,6 @@ cni:
264266
# @section -- CNI configuration
265267
nonPrimaryCNI: false
266268

267-
268269
# -- Configuration of the validating webhook used to verify custom resources before they are pushed to Kubernetes.
269270
# Make sure cert-manager is installed for the generation of certificates for the webhook.
270271
# See https://kubeovn.github.io/docs/stable/en/guide/webhook/
@@ -319,7 +320,6 @@ natGw:
319320
# @section -- NAT gateways configuration
320321
apiNadProvider: "{{ .Values.apiNad.name }}.{{ .Values.namespace }}.ovn"
321322

322-
323323
# -- Configuration for network policies
324324
# @section -- Network Policies
325325
# @default -- "{}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
kubernetes.io/description: |
88
kube-ovn vpc-nat common config
99
data:
10-
image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ .Values.global.images.kubeovn.tag }}
10+
image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ or .Values.global.images.kubeovn.vpcTag .Values.global.images.kubeovn.tag }}
1111

1212
---
1313
kind: ConfigMap

charts/kube-ovn/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ global:
1010
repository: kube-ovn
1111
vpcRepository: vpc-nat-gateway
1212
tag: v1.15.0
13+
# If empty, uses the same tag as kubeovn
14+
vpcTag: ""
1315
support_arm: true
1416
thirdparty: true
1517

0 commit comments

Comments
 (0)