Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,464 for nameslice (0.26 sec)

  1. pkg/scheduler/metrics/resources/resources_test.go

    				# TYPE kube_pod_resource_request gauge
    				kube_pod_resource_request{namespace="test",node="",pod="foo-unscheduled-succeeded",priority="",resource="cpu",scheduler="",unit="cores"} 1
    				kube_pod_resource_request{namespace="test",node="node-one",pod="foo-pending",priority="",resource="cpu",scheduler="",unit="cores"} 1
    				kube_pod_resource_request{namespace="test",node="node-one",pod="foo-unknown",priority="",resource="cpu",scheduler="",unit="cores"} 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/framework/fake_listers.go

    type ServiceLister []*v1.Service
    
    // Services returns nil.
    func (f ServiceLister) Services(namespace string) corelisters.ServiceNamespaceLister {
    	var services []*v1.Service
    	for i := range f {
    		if f[i].Namespace == namespace {
    			services = append(services, f[i])
    		}
    	}
    	return &serviceNamespaceLister{
    		services:  services,
    		namespace: namespace,
    	}
    }
    
    // List returns v1.ServiceList, the list of all services.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 10:14:08 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. tools/bug-report/pkg/cluster/cluster.go

    	// Pod maps a pod name to its Pod info. The key is namespace/pod-name.
    	Pod map[string]*corev1.Pod
    	// CniPod
    	CniPod map[string]*corev1.Pod
    }
    
    func (r *Resources) insertContainer(namespace, deployment, pod, container string) {
    	if r.Root == nil {
    		r.Root = make(map[string]any)
    	}
    	if r.Root[namespace] == nil {
    		r.Root[namespace] = make(map[string]any)
    	}
    	d := r.Root[namespace].(map[string]any)
    	if d[deployment] == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 14 02:11:31 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. operator/pkg/helmreconciler/wait.go

    }
    
    func getPods(client kubernetes.Interface, namespace string, selector labels.Selector) ([]corev1.Pod, error) {
    	list, err := client.CoreV1().Pods(namespace).List(context.TODO(), metav1.ListOptions{
    		LabelSelector: selector.String(),
    	})
    	return list.Items, err
    }
    
    func namespacesReady(namespaces []corev1.Namespace) (bool, []string) {
    	var notReady []string
    	for _, namespace := range namespaces {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. istioctl/pkg/checkinject/checkinject_test.go

    		})
    	}
    }
    
    var nsTestObject = func(namespace, injLabelValue, revLabelValue string) *corev1.Namespace {
    	labels := map[string]string{}
    	if injLabelValue != "" {
    		labels["istio-injection"] = injLabelValue
    	}
    	if revLabelValue != "" {
    		labels[label.IoIstioRev.Name] = revLabelValue
    	}
    	return &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   namespace,
    			Labels: labels,
    		},
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/controller.go

    // filterNamespace allows filtering out configs to only a specific namespace. This allows implementing the
    // List call which can specify a specific namespace.
    func filterNamespace(cfgs []config.Config, namespace string) []config.Config {
    	if namespace == metav1.NamespaceAll {
    		return cfgs
    	}
    	return slices.Filter(cfgs, func(c config.Config) bool {
    		return c.Namespace == namespace
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml

      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: system:controller:namespace-controller
      subjects:
      - kind: ServiceAccount
        name: namespace-controller
        namespace: kube-system
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRoleBinding
      metadata:
        annotations:
          rbac.authorization.kubernetes.io/autoupdate: "true"
        creationTimestamp: null
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/resource/helper.go

    	return m
    }
    
    // Subresource sets the helper to access (<resource>/[ns/<namespace>/]<name>/<subresource>)
    func (m *Helper) WithSubresource(subresource string) *Helper {
    	m.Subresource = subresource
    	return m
    }
    
    func (m *Helper) Get(namespace, name string) (runtime.Object, error) {
    	req := m.RESTClient.Get().
    		NamespaceIfScoped(namespace, m.NamespaceScoped).
    		Resource(m.Resource).
    		Name(name).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 26 03:45:13 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. plugin/pkg/admission/security/podsecurity/admission_test.go

    	}
    
    	p.InspectFeatureGates(utilfeature.DefaultFeatureGate)
    
    	namespace := "enforce"
    	enforceNamespaceBaselineV1 := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: namespace, Labels: map[string]string{"pod-security.kubernetes.io/enforce": "baseline"}}}
    	enforceNamespaceRestrictedV1 := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: namespace, Labels: map[string]string{"pod-security.kubernetes.io/enforce": "restricted"}}}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 15 01:29:47 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  10. pkg/kubelet/userns/userns_manager.go

    	lock sync.Mutex
    }
    
    // UserNamespace holds the configuration for the user namespace.
    type userNamespace struct {
    	// UIDs mappings for the user namespace.
    	UIDMappings []idMapping `json:"uidMappings"`
    	// GIDs mappings for the user namespace.
    	GIDMappings []idMapping `json:"gidMappings"`
    }
    
    // Pod user namespace mapping
    type idMapping struct {
    	// Required.
    	HostId uint32 `json:"hostId"`
    	// Required.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top