github.com/pachyderm/pachyderm@v1.13.4/src/client/pkg/config/context.go (about) 1 package config 2 3 // EqualClusterReference returns whether two contexts appear to point to the 4 // same underlying kubernetes cluster 5 func (c *Context) EqualClusterReference(other *Context) bool { 6 if other == nil { 7 return false 8 } 9 if c.ClusterName != other.ClusterName { 10 return false 11 } 12 if c.AuthInfo != other.AuthInfo { 13 return false 14 } 15 if c.Namespace != other.Namespace { 16 return false 17 } 18 if c.PachdAddress != other.PachdAddress { 19 return false 20 } 21 return true 22 }