Skip to content

Commit b911fc1

Browse files
authored
add additional response code handling for eks 1.32 changes to auth (#249)
1 parent f321cb8 commit b911fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eks/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func checkKubernetesApiServer(eksClusterArn string) bool {
126126
// A 403 response will be returned from EKS in most situations because we are not going through the auth workflow
127127
// here to access the API (to keep things simple), and anonymous access is disabled on the cluster (for security
128128
// reasons).
129-
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusForbidden {
129+
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusForbidden && resp.StatusCode != http.StatusUnauthorized {
130130
bodyBytes, err := ioutil.ReadAll(resp.Body)
131131
if err != nil {
132132
logger.Errorf("Error reading response body: %s", err)

0 commit comments

Comments
 (0)