Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetRevisionFromPodAnnotation (0.18 sec)

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

    			counts.needsRestart++
    		}
    		retval[revisionLabel] = counts
    	}
    	return retval
    }
    
    func extractRevisionFromPod(pod *corev1.Pod) string {
    	return describe.GetRevisionFromPodAnnotation(pod.GetAnnotations())
    }
    
    func injectionDisabled(pod *corev1.Pod) bool {
    	inject := pod.ObjectMeta.GetAnnotations()[annotation.SidecarInject.Name]
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    				return err
    			}
    
    			writer := cmd.OutOrStdout()
    
    			podLabels := klabels.Set(pod.ObjectMeta.Labels)
    			annotations := klabels.Set(pod.ObjectMeta.Annotations)
    			opts.Revision = GetRevisionFromPodAnnotation(annotations)
    
    			printPod(writer, pod, opts.Revision)
    
    			svcs, err := client.Kube().CoreV1().Services(ns).List(context.TODO(), metav1.ListOptions{})
    			if err != nil {
    				return err
    			}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    					"imagePullSecrets": null,
    					"revision": "1-13-2"
    				}`,
    			},
    			expected: "1-13-2",
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run("", func(t *testing.T) {
    			got := GetRevisionFromPodAnnotation(tc.anno)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestFindProtocolForPort(t *testing.T) {
    	http := "HTTP"
    	hbone := "hbone"
    	cases := []struct {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 30.8K bytes
    - Viewed (0)
Back to top