Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hanno (0.15 sec)

  1. istioctl/pkg/injector/injector-list_test.go

    		{
    			name: "has rev annotation",
    			pod: &corev1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Annotations: map[string]string{
    						annotation.SidecarStatus.Name: `{"revision": "test-anno"}`,
    					},
    				},
    			},
    			expectedRevision: "test-anno",
    		},
    		{
    			name: "has both rev label and annotation, use label",
    			pod: &corev1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

        @Test
        public void testGetProperties() throws Exception {
            final Method m = ClassUtil.getMethod(getClass(), "testGetProperties");
            final Annotation anno = m.getAnnotation(Hoge.class);
            final Map<String, Object> props = AnnotationUtil.getProperties(anno);
            assertThat((String) props.get("aaa"), is("123"));
            assertThat((String) props.get("bbb"), is("3"));
            assertThat(props.get("ccc"), is(nullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    	}
    }
    
    func TestGetRevisionFromPodAnnotation(t *testing.T) {
    	cases := []struct {
    		anno klabels.Set
    
    		expected string
    	}{
    		{
    			anno: klabels.Set{
    				apiannotation.SidecarStatus.Name: "",
    			},
    			expected: "",
    		},
    		{
    			anno:     klabels.Set{},
    			expected: "",
    		},
    		{
    			anno: klabels.Set{
    				apiannotation.SidecarStatus.Name: `
    				{
    					"initContainers": [
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe.go

    		"Suppress warnings for unmeshed pods")
    	cmd.Long += "\n\n" + istioctlutil.ExperimentalMsg
    	return cmd
    }
    
    func GetRevisionFromPodAnnotation(anno klabels.Set) string {
    	if v, ok := anno[label.IoIstioRev.Name]; ok {
    		return v
    	}
    	statusString := anno.Get(apiannotation.SidecarStatus.Name)
    	var injectionStatus inject.SidecarInjectionStatus
    	if err := json.Unmarshal([]byte(statusString), &injectionStatus); err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
Back to top