Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 130 for GetOptions (0.17 sec)

  1. 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
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/upgrade/postupgrade.go

    	var missingCoreDNSConfigMap bool
    	if _, err := client.CoreV1().ConfigMaps(metav1.NamespaceSystem).Get(
    		context.TODO(),
    		kubeadmconstants.CoreDNSConfigMap,
    		metav1.GetOptions{},
    	); err != nil && apierrors.IsNotFound(err) {
    		missingCoreDNSConfigMap = true
    	}
    	if missingCoreDNSConfigMap {
    		klog.Warningf("the ConfigMaps %q in the namespace %q were not found. "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. tests/integration/ambient/gateway_conformance_test.go

    			ambientComponent.NewWaypointProxyOrFail(ctx, meshNS, "namespace")
    			for _, k := range ctx.AllClusters() {
    				ns, err := k.Kube().CoreV1().Namespaces().Get(ctx.Context(), meshNS.Name(), metav1.GetOptions{})
    				if err != nil {
    					t.Fatal(err)
    				}
    				labels := ns.Labels
    				if labels == nil {
    					labels = make(map[string]string)
    				}
    				labels[constants.AmbientUseWaypointLabel] = "namespace"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/apiclient/wait.go

    		constants.KubernetesAPICallRetryInterval, w.timeout,
    		true, func(_ context.Context) (bool, error) {
    			_, err := w.client.CoreV1().Pods(metav1.NamespaceSystem).Get(context.TODO(), podName, metav1.GetOptions{})
    			if err != nil && apierrors.IsNotFound(err) {
    				fmt.Printf("[apiclient] The old Pod %q is now removed (which is desired)\n", podName)
    				return true, nil
    			}
    			return false, nil
    		})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. pkg/registry/core/serviceaccount/storage/storage_test.go

    // When more test cases are added, this getter will need extending/replacing to have a real test implementation.
    type panicGetter struct{}
    
    func (f panicGetter) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	panic("not implemented")
    }
    
    var _ rest.Getter = panicGetter{}
    
    func validNewServiceAccount(name string) *api.ServiceAccount {
    	return &api.ServiceAccount{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. pkg/test/framework/components/prometheus/kube.go

    		if err != nil {
    			return nil, err
    		}
    		pod := pods[0]
    
    		svc, err := cls.Kube().CoreV1().Services(cfg.TelemetryNamespace).Get(context.TODO(), serviceName, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    		port := uint16(svc.Spec.Ports[0].Port)
    
    		forwarder, err := cls.NewPortForwarder(pod.Name, pod.Namespace, "", 0, int(port))
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java

                    .withPropertyName("stylesheetFile")
                    .withPathSensitivity(PathSensitivity.NAME_ONLY);
    
                StandardJavadocDocletOptions options = (StandardJavadocDocletOptions) task.getOptions();
                options.setEncoding("utf-8");
                options.setDocEncoding("utf-8");
                options.setCharSet("utf-8");
    
                options.addBooleanOption("-allow-script-in-comments", true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 04:10:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go

    			if err != nil {
    				t.Fatalf("Expected no error, but got: %v", err)
    			}
    
    			plGot, err := client.Get(context.TODO(), test.bootstrap.Name, metav1.GetOptions{})
    			switch {
    			case test.expected == nil:
    				if !apierrors.IsNotFound(err) {
    					t.Fatalf("Expected GET to return an %q error, but got: %v", metav1.StatusReasonNotFound, err)
    				}
    			case err != nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    // Get takes name of the example, and returns the corresponding example object, and an error if there is any.
    func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult)
    
    	if obj == nil {
    		return emptyResult, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			out := &example.Pod{} // reset
    			// verify that kv pair is empty before set
    			key := computePodKey(tt.inputObj)
    			if err := store.Get(ctx, key, storage.GetOptions{}, out); !storage.IsNotFound(err) {
    				t.Fatalf("expecting empty result on key %s, got %v", key, err)
    			}
    
    			err := store.Create(ctx, key, tt.inputObj, out, 0)
    			if !errors.Is(err, tt.expectedError) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
Back to top