Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for setOptions (0.24 sec)

  1. istioctl/pkg/kubeinject/kubeinject.go

    		Transport: &http.Transport{
    			TLSClientConfig: tlsClientConfig,
    		},
    	}
    	if cc.Service != nil {
    		svc, err := e.client.Kube().CoreV1().Services(cc.Service.Namespace).Get(context.Background(), cc.Service.Name, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    		namespace, selector, err := polymorphichelpers.SelectorsForObject(svc)
    		if err != nil {
    			if e.injectorAddress == "" {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. istioctl/pkg/multicluster/remote_secret.go

    	}
    	return client.Kube().CoreV1().Secrets(secretNamespace).Get(context.TODO(), secretName, metav1.GetOptions{})
    }
    
    func getOrCreateServiceAccount(client kube.CLIClient, opt RemoteSecretOptions) (*v1.ServiceAccount, error) {
    	if sa, err := client.Kube().CoreV1().ServiceAccounts(opt.Namespace).Get(
    		context.TODO(), opt.ServiceAccountName, metav1.GetOptions{}); err == nil {
    		return sa, nil
    	} else if !opt.CreateServiceAccount {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload.go

    				if err := readWorkloadGroup(filename, wg); err != nil {
    					return err
    				}
    			} else {
    				wg, err = kubeClient.Istio().NetworkingV1alpha3().WorkloadGroups(namespace).Get(context.Background(), name, metav1.GetOptions{})
    				// errors if the requested workload group does not exist in the given namespace
    				if err != nil {
    					return fmt.Errorf("workloadgroup %s not found in namespace %s: %v", name, namespace, err)
    				}
    			}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    				defer ticker.Stop()
    				for range ticker.C {
    					programmed := false
    					gwc, err := kubeClient.GatewayAPI().GatewayV1().Gateways(ctx.NamespaceOrDefault(ctx.Namespace())).Get(context.TODO(), gw.Name, metav1.GetOptions{})
    					if err == nil {
    						// Check if gateway has Programmed condition set to true
    						for _, cond := range gwc.Status.Conditions {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers_test.go

    }
    
    func assertPodAnnotated(t *testing.T, client kube.Client, pod *corev1.Pod) {
    	for i := 0; i < 5; i++ {
    		p, err := client.Kube().CoreV1().Pods(pod.Namespace).Get(context.Background(), pod.Name, metav1.GetOptions{})
    		if err != nil {
    			t.Fatal(err)
    		}
    		if p.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled {
    			return
    		}
    		time.Sleep(1 * time.Second)
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return ret;
    }
    
    void ModularFileSystem::FlushCaches(TransactionToken* token) {
      if (ops_->flush_caches != nullptr) ops_->flush_caches(filesystem_.get());
    }
    
    Status ModularFileSystem::SetOption(const std::string& name,
                                        const std::vector<string>& values) {
      if (ops_->set_filesystem_configuration == nullptr) {
        return errors::Unimplemented(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin.go

    	pod, err := client.CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{})
    	if err != nil {
    		return false, err
    	}
    	ns, err := client.CoreV1().Namespaces().Get(context.Background(), podNamespace, metav1.GetOptions{})
    	if err != nil {
    		return false, err
    	}
    
    	return util.PodRedirectionEnabled(ns, pod), nil
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. istioctl/pkg/precheck/precheck.go

    	// This has no effect for users, unless they have this service.
    	svc, err := cli.Kube().CoreV1().Services("istio-system").Get(context.Background(), "zipkin", metav1.GetOptions{})
    	if err != nil && !kerrors.IsNotFound(err) {
    		return err
    	}
    	if err != nil {
    		// not found
    		return nil
    	}
    	// found
    	res := ObjectToInstance(svc)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. istioctl/pkg/multixds/gather.go

    			return nil, fmt.Errorf("invalid resource name format: %v", slice)
    		}
    		podName := slice[0]
    		ns := slice[1]
    		pod, err := kubeClient.Kube().CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    		resp, err := queryToOnePod(pod)
    		if err != nil {
    			return nil, err
    		}
    		responses = append(responses, resp)
    		return responses, nil
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/generate.go

    	// that is set to `Fail` by Istiod, we avoid of setting it back to the default `Ignore`.
    	vwh, err := client.Kube().AdmissionregistrationV1().ValidatingWebhookConfigurations().
    		Get(context.Background(), vwhBaseTemplateName, metav1.GetOptions{})
    	if err != nil && !errors.IsNotFound(err) {
    		return nil, err
    	}
    	if vwh == nil {
    		return whConfig, nil
    	}
    	if whConfig.FailurePolicy == nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top