We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f321cb8 commit b911fc1Copy full SHA for b911fc1
eks/cluster.go
@@ -126,7 +126,7 @@ func checkKubernetesApiServer(eksClusterArn string) bool {
126
// A 403 response will be returned from EKS in most situations because we are not going through the auth workflow
127
// here to access the API (to keep things simple), and anonymous access is disabled on the cluster (for security
128
// reasons).
129
- if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusForbidden {
+ if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusForbidden && resp.StatusCode != http.StatusUnauthorized {
130
bodyBytes, err := ioutil.ReadAll(resp.Body)
131
if err != nil {
132
logger.Errorf("Error reading response body: %s", err)
0 commit comments