import "k8s.io/client-go/rest" // create a new config object with default values config := rest.Config{} // customize the config with options config.Host = "https://my-kube-api-server.com" config.Username = "myuser" config.Password = "mypassword"
import "k8s.io/apimachinery/pkg/apis/meta/v1" // create a new groupversion object gv := v1.GroupVersion{ Group: "mygroup.com", Version: "v1", Kind: "MyCustomObject", }These examples demonstrate how the `k8s.io/kubernetes/pkg/client/restclient` package library can be used to interact with the Kubernetes API using Go.