Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test #18

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/autodetect/autodetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
"eks": Provider{
Path: "/",
Header: map[string]string{"Server": "EC2ws"},
ExpectedStatusCode: http.StatusOK,
ExpectedStatusCode: http.StatusUnauthorized,
},
}
)
Expand Down
19 changes: 19 additions & 0 deletions pkg/eks/testdata/userdata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[settings.kubernetes]
"cluster-name" = "test4"
"api-server" = "https://36C6589489FA0EE0A77C38D3A0552682.gr7.eu-west-1.eks.amazonaws.com"
"cluster-certificate" = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJeE1ETXdNekUzTWpZd05Gb1hEVE14TURNd01URTNNall3TkZvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBSnAxCjVrN2FPRWpyWnBJTmN0cG5MZWl0aDBkM3UrR1E0SlpnU1VQU2hSL0lIdWZ2WTNMandTVUc5M05QNDgrV1pkUUQKM1Z4WnJWdXpsOTRMR3gwa29TUytSUmhmcWpJTHlYSm5mT2lJWjJkTWdjZURYdG1jWHFuSGpFQ1l1MVp5ejFQago2WHJ3dFIwYXJMaS9XSXpzMTlFa2M3V2RZMDJKV0VWZUV0ZWpnNzFzaUUvRk52VmtBV0p4MXpGOXRxWnBOY25ECmdpbDhtZ1VsWjdHVVZyTExnZEgwUjFxdCtDdzRvcGFTMWhCa0tCeVdQUFhJY25JSFZIWUxoZnRCL09JV2FOM0IKQytMQnhMaEFvQmQ4RUZoa2hxTjZwRjFiMTlaSi9XdFI3bWVVaWgrcUxmdy9HTWZpME1xUkY0MDFWdVNvbktrZAp3aGVGTm9CajU0d2xaLzVIVTdNQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFGYWhXZ2hManQ1bkUxSUxQNnozNTkxaE5HQTQKMHdncXRZMndPczZsejMvdkZ2M2s1R1hYNjVNUGk1UFEwYm1Dc29QeWdRMnFyck1oWkVUbk52d2d4RXRDeW84TwowTzV6a3BwYmMvM1ZDcHJpVXJXSHl4bnVIclVVa0xJK0J6aWNWVk42blJhYlJGLzhIYnBJTUMwMVEyMWJ5WVEyCnFjUFpjYVdyTzd2OURrMW5YVk9QUTVDRmZPMmFxb1dvSG1ER3ZOZlFMZzhiUDg3R2VCZStTTzJrZGxBVmJGZWMKS0xBdDlSblE3cjBTNk5Xa09xNS85d1hPYk42aVlZUVNiV1l5Z2tBZk56RWkvMUtKeU93aEdSVjd3VEErZ2FSTwpGUVFKT1lhcUlyQUtTdUw4elVjbHpBK3paYWtQbmV2aUhkR1hNMWY3enVZS1UyMklDQWVBdGkxZnVTaz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="
max-pods = 110

# The admin host container provides SSH access and runs with "superpowers".
# It is disabled by default, but can be disabled explicitly.
[settings.host-containers.admin]
enabled = false

# The control host container provides out-of-band access via SSM.
# It is enabled by default, and can be disabled if you do not expect to use SSM.
# This could leave you with no way to access the API and change settings on an existing node!
[settings.host-containers.control]
enabled = true

[settings.kubernetes.node-labels]
ingress = "allowed"