- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for clusterUID (0.08 sec)
-
istioctl/pkg/multicluster/cluster.go
"k8s.io/client-go/kubernetes" ) // Use UUID of kube-system Namespace as unique identifier for cluster. // (see https://docs.google.com/document/d/1F__vEKeI41P7PPUCMM9PVPYY34pyrvQI5rbTJVnS5c4) func clusterUID(client kubernetes.Interface) (types.UID, error) { kubeSystem, err := client.CoreV1().Namespaces().Get(context.TODO(), "kube-system", metav1.GetOptions{}) if err != nil { return "", err } return kubeSystem.UID, nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Sep 02 03:11:58 UTC 2022 - 1.1K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret.go
type Warning error func createRemoteSecret(opt RemoteSecretOptions, client kube.CLIClient) (*v1.Secret, Warning, error) { // generate the clusterName if not specified if opt.ClusterName == "" { uid, err := clusterUID(client.Kube()) if err != nil { return nil, nil, err } opt.ClusterName = string(uid) } var secretName string switch opt.Type { case SecretTypeRemote:
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 23.3K bytes - Viewed (0)