Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for AllContainers (0.14 sec)

  1. pkg/api/pod/util_test.go

    		wantContainers []string
    		mask           ContainerType
    	}{
    		{
    			desc:           "empty podspec",
    			spec:           &api.PodSpec{},
    			wantContainers: []string{},
    			mask:           AllContainers,
    		},
    		{
    			desc: "regular containers",
    			spec: &api.PodSpec{
    				Containers: []api.Container{
    					{Name: "c1"},
    					{Name: "c2"},
    				},
    				InitContainers: []api.Container{
    					{Name: "i1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. plugin/pkg/admission/noderestriction/admission.go

    	if hasSecrets {
    		return admission.NewForbidden(a, fmt.Errorf("node %q can not create pods that reference secrets", nodeName))
    	}
    	hasConfigMaps := false
    	podutil.VisitPodConfigmapNames(pod, func(name string) (shouldContinue bool) { hasConfigMaps = true; return false }, podutil.AllContainers)
    	if hasConfigMaps {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. plugin/pkg/admission/serviceaccount/admission.go

    		}
    		hasSecrets := false
    		podutil.VisitPodSecretNames(pod, func(name string) bool {
    			hasSecrets = true
    			return false
    		}, podutil.AllContainers)
    		if hasSecrets {
    			return admission.NewForbidden(a, fmt.Errorf("a mirror pod may not reference secrets"))
    		}
    		for _, v := range pod.Spec.Volumes {
    			if proj := v.Projected; proj != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container.go

    // those already exited and dead containers (used for garbage collection).
    func (m *kubeGenericRuntimeManager) getKubeletContainers(ctx context.Context, allContainers bool) ([]*runtimeapi.Container, error) {
    	filter := &runtimeapi.ContainerFilter{}
    	if !allContainers {
    		filter.State = &runtimeapi.ContainerStateValue{
    			State: runtimeapi.ContainerState_CONTAINER_RUNNING,
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  5. pkg/kube/inject/webhook.go

    type ParsedContainers struct {
    	Containers     []corev1.Container `json:"containers,omitempty"`
    	InitContainers []corev1.Container `json:"initContainers,omitempty"`
    }
    
    func (p ParsedContainers) AllContainers() []corev1.Container {
    	return append(slices.Clone(p.Containers), p.InitContainers...)
    }
    
    // nolint directives: interfacer
    func loadConfig(injectFile, valuesFile string) (*Config, string, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top