Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Annotation (0.2 sec)

  1. cni/pkg/plugin/sidecar_redirect.go

    )
    
    var (
    	includeIPCidrsKey       = annotation.SidecarTrafficIncludeOutboundIPRanges.Name
    	excludeIPCidrsKey       = annotation.SidecarTrafficExcludeOutboundIPRanges.Name
    	excludeInboundPortsKey  = annotation.SidecarTrafficExcludeInboundPorts.Name
    	includeInboundPortsKey  = annotation.SidecarTrafficIncludeInboundPorts.Name
    	excludeOutboundPortsKey = annotation.SidecarTrafficExcludeOutboundPorts.Name
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server_test.go

    	}
    
    	// pod is not in fake client, so if this will try to remove annotation, it will fail.
    	err := m.DelPodFromMesh(fakeCtx, pod)
    	assert.Error(t, err)
    }
    
    func podWithAnnotation() *corev1.Pod {
    	return &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    			UID:       types.UID("test"),
    			Annotations: map[string]string{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    				" --annotations annotation=foobar --ports grpc=3550,http=8080 --serviceAccount test", " "),
    			expectedException: false,
    			expectedOutput:    customYAML,
    		},
    		{
    			description: "valid case - create full workload group with shortnames",
    			args: strings.Split("group create --name foo -n bar -l app=foo,bar=baz -p grpc=3550,http=8080"+
    				" -a annotation=foobar --serviceAccount test", " "),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	err := s.netServer.RemovePodFromMesh(ctx, pod)
    	if err != nil {
    		log.Errorf("failed to remove pod from mesh: %v", err)
    		return err
    	}
    	log.Debug("removing annotation from pod")
    	err = util.AnnotateUnenrollPod(s.kubeClient, &pod.ObjectMeta)
    	if err != nil {
    		log.Errorf("failed to annotate pod unenrollment: %v", err)
    	}
    	return err
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin_test.go

    	pod.Spec.Containers = []corev1.Container{app, proxy}
    	pod.ObjectMeta.Annotations = map[string]string{annotation.SidecarStatus.Name: "true"}
    	ns.ObjectMeta.Labels = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient}
    
    	testDoAddRun(t, cniConf, testNSName, pod, ns)
    
    	wasCalled := serverClose()
    	// Pod has sidecar annotation from injector, should not be added to mesh
    	assert.Equal(t, wasCalled, false)
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/informers_test.go

    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	// wait for another two update events
    	// total 3 update at before unlabel point: 1. init ns reconcile 2. ns label reconcile 3. pod annotation update
    	mt.Assert(EventTotals.Name(), map[string]string{"type": "update"}, monitortest.AtLeast(5))
    
    	waitForMockCalls()
    
    	assertPodNotAnnotated(t, client, pod)
    
    	// Assert expected calls actually made
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  7. cni/pkg/util/podutil_test.go

    // limitations under the License.
    
    package util
    
    import (
    	"testing"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/api/annotation"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestGetPodIPIfPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/informers.go

    		}
    		wasAnnotated := oldPod.Annotations != nil && oldPod.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    		isAnnotated := newPod.Annotations != nil && newPod.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    		shouldBeEnabled := util.PodRedirectionEnabled(ns, newPod)
    
    		// We should check the latest annotation vs desired status
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  9. cni/pkg/repair/repair_test_helpers.go

    		InitContainerStatus: &brokenInitContainerWaiting,
    	})
    
    	brokenPodNoAnnotation = makePod(makePodArgs{
    		PodName:             "broken-pod-no-annotation",
    		InitContainerStatus: &brokenInitContainerWaiting,
    	})
    
    	workingPod = makePod(makePodArgs{
    		PodName: "working-pod",
    		Annotations: map[string]string{
    			"sidecar.istio.io/status": "something",
    		},
    		InitContainerStatus: &workingInitContainer,
    	})
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 12 17:39:53 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  10. cni/pkg/plugin/plugin_dryrun_test.go

    		},
    		{
    			name: "include-exclude-ports",
    			annotations: map[string]string{
    				annotation.SidecarStatus.Name:                      "true",
    				annotation.SidecarTrafficIncludeInboundPorts.Name:  "1111,2222",
    				annotation.SidecarTrafficExcludeInboundPorts.Name:  "3333,4444",
    				annotation.SidecarTrafficExcludeOutboundPorts.Name: "5555,6666",
    			},
    			proxyEnv: []corev1.EnvVar{},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top