Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,844 for naMespace (0.2 sec)

  1. pkg/test/framework/components/echo/config.go

    )
    
    // Config defines the options for creating an Echo component.
    // nolint: maligned
    type Config struct {
    	// Namespace of the echo Instance. If not provided, a default namespace "apps" is used.
    	Namespace namespace.Instance
    
    	// DefaultHostHeader overrides the default Host header for calls (`service.namespace.svc.cluster.local`)
    	DefaultHostHeader string
    
    	// Domain of the echo Instance. If not provided, a default will be selected.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pkg/controller/serviceaccount/serviceaccounts_controller.go

    			return
    		}
    	}
    	c.queue.Add(sa.Namespace)
    }
    
    // namespaceAdded reacts to a Namespace creation by creating a default ServiceAccount object
    func (c *ServiceAccountsController) namespaceAdded(obj interface{}) {
    	namespace := obj.(*v1.Namespace)
    	c.queue.Add(namespace.Name)
    }
    
    // namespaceUpdated reacts to a Namespace update (or re-list) by creating a default ServiceAccount in the namespace if needed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. pilot/pkg/xds/proxy_dependencies_test.go

    				spiffe.Identity{TrustDomain: "cluster.local", Namespace: "namespace", ServiceAccount: "serviceaccount"}.String(),
    			},
    			sa:        "serviceaccount",
    			namespace: "namespace",
    			success:   true,
    		},
    		{
    			name: "no match namespace",
    			identity: []string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/tls_test.go

    				},
    				namespace: "bar",
    			},
    			false,
    		},
    		{
    			"source namespace not match when empty",
    			args{
    				match: &v1alpha3.TLSMatchAttributes{
    					SourceNamespace: "foo",
    				},
    				namespace: "",
    			},
    			false,
    		},
    		{
    			"source namespace any",
    			args{
    				match:     &v1alpha3.TLSMatchAttributes{},
    				namespace: "bar",
    			},
    			true,
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. cni/pkg/util/podutil_test.go

    				Name:        "test",
    				Namespace:   "test",
    				Labels:      ambientEnabledLabel,
    				Annotations: sidecarStatusAnnotation,
    			},
    		}
    	)
    
    	type args struct {
    		namespace *corev1.Namespace
    		pod       *corev1.Pod
    	}
    	tests := []struct {
    		name string
    		args args
    		want bool
    	}{
    		{
    			name: "ambient mode enabled for namespace",
    			args: args{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/authorization.go

    					log.Debugf("Switch selected namespace policy to %s.%s (%v)", cfg.Name, cfg.Namespace, cfg.CreationTimestamp)
    					namespaceCfg = cfg
    				}
    			}
    		} else if cfg.Namespace != rootNamespace {
    			if workloadCfg == nil || cfg.CreationTimestamp.Before(&workloadCfg.CreationTimestamp) {
    				log.Debugf("Switch selected workload policy to %s.%s (%v)", cfg.Name, cfg.Namespace, cfg.CreationTimestamp)
    				workloadCfg = cfg
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 16:23:36 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    	for _, namespace := range ignoredNamespaces.UnsortedList() {
    		// Create namespace in ignored list, make sure its not created
    		createNamespace(t, client.Kube(), namespace, newData)
    		// Configmap in that namespace should not do anything either
    		createConfigMap(t, client.Kube(), "not-root", namespace, "k")
    		expectConfigMapNotExist(t, nc.configmaps, namespace)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. pkg/kube/krt/index_test.go

    			Name:      "name2",
    			Namespace: "namespace",
    		},
    		Status: corev1.PodStatus{PodIP: "1.2.3.5"},
    	}
    	pc.CreateOrUpdateStatus(pod2)
    	tt.WaitUnordered("add/namespace/name2")
    	assert.Equal(t, Collection.Get(), ptr.Of("namespace/name,namespace/name2"))
    
    	pc.Delete(pod.Name, pod.Namespace)
    	pc.Delete(pod2.Name, pod2.Namespace)
    	tt.WaitUnordered("delete/namespace/name", "delete/namespace/name2")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/crdclient/types.gen.go

    				Generation:        obj.Generation,
    			},
    			Spec: obj,
    		}
    	},
    	gvk.Namespace: func(r runtime.Object) config.Config {
    		obj := r.(*k8sioapicorev1.Namespace)
    		return config.Config{
    			Meta: config.Meta{
    				GroupVersionKind:  gvk.Namespace,
    				Name:              obj.Name,
    				Namespace:         obj.Namespace,
    				Labels:            obj.Labels,
    				Annotations:       obj.Annotations,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/informers_test.go

    	fs.AssertExpectations(t)
    
    	// unlabelling the namespace should cause only one RemovePodFromMesh to happen
    	fs.On("RemovePodFromMesh",
    		ctx,
    		mock.Anything,
    	).Once().Return(nil)
    
    	// unlabel the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":null}}}`,
    		constants.DataplaneModeLabel))
    	_, err = client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top