Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getNamespace (0.15 sec)

  1. istioctl/pkg/validate/validate.go

    						"This is not recommended, See "+url.ProtocolSelection, fmt.Sprintf("%s/%s/:", un.GetName(), un.GetNamespace())))
    				}
    			} else {
    				if p["name"] == nil {
    					errs = multierror.Append(errs, fmt.Errorf("service %q has an unnamed port. This is not recommended,"+
    						" See "+url.DeploymentRequirements, fmt.Sprintf("%s/%s/:", un.GetName(), un.GetNamespace())))
    					continue
    				}
    				if servicePortPrefixed(p["name"].(string)) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 22:27:47 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. istioctl/pkg/waypoint/waypoint.go

    	nsObj, err := getNamespace(kubeClient, ns)
    	if err != nil {
    		return false, err
    	}
    	if nsObj.Labels == nil {
    		return false, nil
    	}
    	return nsObj.Labels[label] != "", nil
    }
    
    func namespaceHasLabelWithValue(kubeClient kube.CLIClient, ns string, label, labelValue string) (bool, error) {
    	nsObj, err := getNamespace(kubeClient, ns)
    	if err != nil {
    		return false, err
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. istioctl/pkg/injector/injector-list.go

    	pods, err := client.Kube().CoreV1().Pods("").List(ctx, metav1.ListOptions{})
    	if err != nil {
    		return retval, err
    	}
    	for _, pod := range pods.Items {
    		retval[resource.Namespace(pod.GetNamespace())] = append(retval[resource.Namespace(pod.GetNamespace())], pod)
    	}
    	return retval, nil
    }
    
    // getInjectedImages() returns a map of revision->dockerimage
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    			res := &resource.Instance{
    				Origin: &legacykube.Origin{
    					Type: config.GroupVersionKind(deployment.GroupVersionKind()),
    					FullName: resource.FullName{
    						Namespace: resource.Namespace(deployment.GetNamespace()),
    						Name:      resource.LocalName(deployment.GetName()),
    					},
    					ResourceVersion: resource.Version(deployment.GetResourceVersion()),
    					Ref:             nil,
    					FieldsMap:       nil,
    				},
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 02:31:32 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    		return nil
    	}
    	// key: namespace
    	ingressPods := map[string][]*corev1.Pod{}
    	ingressNss := sets.New[string]()
    	for i, pod := range pods.Items {
    		ns := pod.GetNamespace()
    		ingressNss.Insert(ns)
    		ingressPods[ns] = append(ingressPods[ns], pods.Items[i].DeepCopy())
    	}
    
    	foundIngresses := []*ingressInfo{}
    	for _, ns := range ingressNss.UnsortedList() {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  6. test-site/activator-launch-1.3.2.jar

    private Boolean isCheckmodified; private String changingMatcherName; private String changingPattern; private boolean checkTTL; public void CacheMetadataOptions(); public final org.apache.ivy.plugins.namespace.Namespace getNamespace(); public final CacheMetadataOptions setNamespace(org.apache.ivy.plugins.namespace.Namespace); public final boolean isValidate(); public final CacheMetadataOptions setValidate(boolean); public final Boolean isCheckmodified(); public final CacheMetadataOptions setCheckmodified(Boolean);...
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (0)
  7. istioctl/pkg/util/handlers/handlers_test.go

    		t.Run(strings.Split(tt.proxyName, ".")[0], func(t *testing.T) {
    			gotPodName, gotNamespace := InferPodInfo(tt.proxyName, tt.namespace)
    			if gotPodName != tt.wantPodName || gotNamespace != tt.wantNamespace {
    				t.Errorf("unexpected podName and namespace: wanted %v %v got %v %v", tt.wantPodName, tt.wantNamespace, gotPodName, gotNamespace)
    			}
    		})
    	}
    }
    
    func TestInferPodInfoFromTypedResource(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. istioctl/pkg/completion/completion.go

    	ctx := context.Background()
    	nsList, err := getNamespaces(ctx, kubeClient)
    	if err != nil {
    		return nil, err
    	}
    
    	var nsNameList []string
    	for _, ns := range nsList {
    		if toComplete == "" || strings.HasPrefix(ns.Name, toComplete) {
    			nsNameList = append(nsNameList, ns.Name)
    		}
    	}
    
    	return nsNameList, nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. istioctl/pkg/injector/injector-list_test.go

    			"istio-injection":               "enabled",
    		}),
    	}
    
    	client := kube.NewFakeClient(nss...)
    	expected := sets.New[string]("default", "no-ambient")
    	actual, err := getNamespaces(context.TODO(), client, "istio-system")
    	assert.NoError(t, err)
    	for _, ns := range actual {
    		assert.Equal(t, true, expected.Contains(ns.Name))
    	}
    }
    
    func Test_injectionDisabled(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

            Files.createDirectories(dest.getParent());
            try (Writer w = Files.newBufferedWriter(dest)) {
                MavenStaxWriter writer = new MavenStaxWriter();
                writer.setNamespace(String.format(NAMESPACE_FORMAT, version));
                writer.setSchemaLocation(String.format(SCHEMA_LOCATION_FORMAT, version));
                writer.setAddLocationInformation(false);
                writer.write(w, model);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top