Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
@@ -1,6 +1,8 @@
package util
import (
+ "net"
+
v1 "k8s.io/api/core/v1"
)
@@ -55,3 +57,8 @@ func GetArchType(labels map[string]string) (string, bool) {
return "", false
}
+func PrivateIPCheck(ip string) bool {
+ ipAddress := net.ParseIP(ip)
+ return ipAddress.IsPrivate()
+}