Skip to content

Commit e571304

Browse files
committed
Recognize EKS cluster URLs when a non-default port is used
1 parent e53acad commit e571304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utils/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func K8sClient() *kubernetes.Clientset {
4747
}
4848

4949
func IsEKS() bool {
50-
return strings.HasSuffix(getConfig().Host, ".eks.amazonaws.com")
50+
return strings.Contains(getConfig().Host, ".eks.amazonaws.com")
5151
}
5252

5353
func GetEKSClusterName() string {

0 commit comments

Comments
 (0)