INNER CODE UNIT · Go
patchServiceWithLabel
we-dcode/kubetunnel · cmd/operator/main.go:225
func patchServiceWithLabel(k *kube.Kube, serviceName string, connected bool) error {
svcContext, err := k.GetServiceContext(serviceName)
if err != nil {
log.Errorf("fail to get service: '%s' context, error: %s", serviceName, err.Error())
}
clientSet := k.InnerKubeClient
log.Debugf(k.Namespace)
ctx := context.TODO()
//slugPrefix := fmt.Sprintf("%s-", constants.KubetunnelSlug)
// TODO: Check if service needs to be updated...
if connected == false {
log.Debugf("removing true from %v\n", serviceName)