Skip to content

Commit

Permalink
Dualstack support with AWS CCM (kubermatic#1466)
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Tiptur <[email protected]>

Signed-off-by: Sachin Tiptur <[email protected]>
  • Loading branch information
sachintiptur authored and mate4st committed Mar 13, 2023
1 parent 052a8fe commit 0703a68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cloudprovider/provider/aws/types/cloudconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ KubernetesClusterID={{ .Global.KubernetesClusterID | iniEscape }}
DisableSecurityGroupIngress={{ .Global.DisableSecurityGroupIngress }}
ElbSecurityGroup={{ .Global.ElbSecurityGroup | iniEscape }}
DisableStrictZoneCheck={{ .Global.DisableStrictZoneCheck }}
{{- range .Global.NodeIPFamilies }}
NodeIPFamilies={{ . | iniEscape}}
{{- end }}
`
)

Expand All @@ -55,6 +58,7 @@ type GlobalOpts struct {
ElbSecurityGroup string
DisableSecurityGroupIngress bool
DisableStrictZoneCheck bool
NodeIPFamilies []string
}

func CloudConfigToString(c *CloudConfig) (string, error) {
Expand Down
1 change: 1 addition & 0 deletions pkg/cloudprovider/provider/aws/types/cloudconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func TestCloudConfigToString(t *testing.T) {
KubernetesClusterTag: "some-tag",
RoleARN: "some-arn",
RouteTableID: "some-rt",
NodeIPFamilies: []string{"ipv4", "ipv6"},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ KubernetesClusterID="some-tag"
DisableSecurityGroupIngress=true
ElbSecurityGroup="some-sg"
DisableStrictZoneCheck=true
NodeIPFamilies="ipv4"
NodeIPFamilies="ipv6"

0 comments on commit 0703a68

Please sign in to comment.