@@ -30,6 +30,9 @@ type al2023Entry struct {
3030
3131var _ = DescribeTable ("Unmanaged AL2023" , func (e al2023Entry ) {
3232 cfg , dns := makeDefaultClusterSettings ()
33+ if e .overrideClusterSettings != nil {
34+ e .overrideClusterSettings (cfg )
35+ }
3336 ng := api .NewNodeGroup ()
3437 makeDefaultNPSettings (ng )
3538
@@ -56,6 +59,14 @@ var _ = DescribeTable("Unmanaged AL2023", func(e al2023Entry) {
5659 },
5760 expectedUserData : wrapMIMEParts (nodeConfig ),
5861 }),
62+ Entry ("control plane on Outposts" , al2023Entry {
63+ overrideClusterSettings : func (cc * api.ClusterConfig ) {
64+ cc .Outpost = & api.Outpost {
65+ ControlPlaneOutpostARN : "arn:aws:outposts:us-west-2:1234:outpost/op-1234" ,
66+ }
67+ cc .Status .ID = "51eaebb5-7e52-4e71-baba-e98a6314b10e"
68+ }, expectedUserData : wrapMIMEParts (nodeConfigOutpost ),
69+ }),
5970)
6071
6172var _ = DescribeTable ("Managed AL2023" , func (e al2023Entry ) {
@@ -404,6 +415,33 @@ spec:
404415 - --node-labels=alpha.eksctl.io/nodegroup-name=al2023-mng-test
405416
406417`
418+
419+ nodeConfigOutpost = `--//
420+ Content-Type: application/node.eks.aws
421+
422+ apiVersion: node.eks.aws/v1alpha1
423+ kind: NodeConfig
424+ metadata: {}
425+ spec:
426+ cluster:
427+ apiServerEndpoint: https://test.xxx.us-west-2.eks.amazonaws.com
428+ certificateAuthority: dGVzdCBDQQ==
429+ cidr: 10.100.0.0/16
430+ enableOutpost: true
431+ id: 51eaebb5-7e52-4e71-baba-e98a6314b10e
432+ name: al2023-test
433+ containerd: {}
434+ instance:
435+ localStorage: {}
436+ kubelet:
437+ config:
438+ clusterDNS:
439+ - 10.100.0.10
440+ flags:
441+ - --node-labels=alpha.eksctl.io/nodegroup-name=al2023-mng-test
442+
443+ `
444+
407445 managedNodeConfigIPv6 = `--//
408446Content-Type: application/node.eks.aws
409447
0 commit comments