-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: AL2023 AMI family functional tests
- Loading branch information
Showing
10 changed files
with
404 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
pkg/providers/launchtemplate/testdata/al2023_mime_userdata_input.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/mixed; boundary="//" | ||
|
||
--// | ||
Content-Type: application/node.eks.aws | ||
|
||
apiVersion: node.eks.aws/v1alpha1 | ||
kind: NodeConfig | ||
spec: | ||
cluster: | ||
name: test-cluster | ||
clusterEndpoint: https://test-cluster | ||
certificateAuthority: cluster-ca | ||
cidr: 10.100.0.0/16 | ||
kubelet: | ||
config: | ||
maxPods: 42 | ||
--// | ||
Content-Type: text/x-shellscript; charset="us-ascii" | ||
|
||
#!/bin/bash | ||
echo "Hello, AL2023!" | ||
--// |
47 changes: 47 additions & 0 deletions
47
pkg/providers/launchtemplate/testdata/al2023_mime_userdata_merged.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/mixed; boundary="//" | ||
|
||
--// | ||
Content-Type: application/node.eks.aws | ||
|
||
# Karpenter Generated NodeConfig | ||
apiVersion: node.eks.aws/v1alpha1 | ||
kind: NodeConfig | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
cluster: | ||
apiServerEndpoint: https://test-cluster | ||
certificateAuthority: Y2EtYnVuZGxlCg== | ||
cidr: 10.100.0.0/16 | ||
name: test-cluster | ||
containerd: {} | ||
kubelet: | ||
config: | ||
clusterDNS: | ||
- 10.0.100.10 | ||
maxPods: 110 | ||
flags: | ||
- --node-labels="karpenter.sh/capacity-type=on-demand,%s=%s,testing/cluster=unspecified" | ||
|
||
--// | ||
Content-Type: application/node.eks.aws | ||
|
||
# User NodeConfig | ||
apiVersion: node.eks.aws/v1alpha1 | ||
kind: NodeConfig | ||
spec: | ||
cluster: | ||
name: test-cluster | ||
clusterEndpoint: https://test-cluster | ||
certificateAuthority: cluster-ca | ||
cidr: 10.100.0.0/16 | ||
kubelet: | ||
config: | ||
maxPods: 42 | ||
--// | ||
Content-Type: text/x-shellscript; charset="us-ascii" | ||
|
||
#!/bin/bash | ||
echo "Hello, AL2023!" | ||
--//-- |
2 changes: 2 additions & 0 deletions
2
pkg/providers/launchtemplate/testdata/al2023_shell_userdata_input.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "Hello, AL2023!" |
Oops, something went wrong.