Skip to content

Commit

Permalink
Recognize EKS cluster URLs when a non-default port is used
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed May 31, 2023
1 parent e53acad commit e571304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func K8sClient() *kubernetes.Clientset {
}

func IsEKS() bool {
return strings.HasSuffix(getConfig().Host, ".eks.amazonaws.com")
return strings.Contains(getConfig().Host, ".eks.amazonaws.com")
}

func GetEKSClusterName() string {
Expand Down

0 comments on commit e571304

Please sign in to comment.