href=/v1.19/docs/reference/config/networking/virtual-service>Istio
virtual services</a>
in the passed namespace:</p><pre><code class=language-go data-expandlinks=true data-repo=istio>package main

import (
  &#34;log&#34;
  &#34;os&#34;

  metav1 &#34;k8s.io/apimachinery/pkg/apis/meta/v1&#34;
  &#34;k8s.io/client-go/tools/clientcmd&#34;

  versionedclient &#34;istio.io/client-go/pkg/clientset/versioned&#34;
)

func main() {
  kubeconfig := os.Getenv(&#34;KUBECONFIG&#34;)
  namespace := os.Getenv(&#34;NAMESP