Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for ContainerType (4.6 sec)

  1. pkg/api/pod/util.go

    func VisitPodSecretNames(pod *api.Pod, visitor Visitor, containerType ContainerType) bool {
    	visitor = skipEmptyNames(visitor)
    	for _, reference := range pod.Spec.ImagePullSecrets {
    		if !visitor(reference.Name) {
    			return false
    		}
    	}
    	VisitContainers(&pod.Spec, containerType, func(c *api.Container, containerType ContainerType) bool {
    		return visitContainerSecretNames(c, visitor)
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  2. pkg/security/apparmor/validate.go

    		return nil
    	}
    
    	if v.ValidateHost() != nil {
    		return v.validateHostErr
    	}
    
    	var retErr error
    	podutil.VisitContainers(&pod.Spec, podutil.AllContainers, func(container *v1.Container, containerType podutil.ContainerType) bool {
    		profile := GetProfile(pod, container)
    		if profile == nil {
    			return true
    		}
    
    		// TODO(#64841): This would ideally be part of validation.ValidateAppArmorProfileFormat, but
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/kubelet/container/helpers.go

    func GetContainerSpec(pod *v1.Pod, containerName string) *v1.Container {
    	var containerSpec *v1.Container
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(c *v1.Container, containerType podutil.ContainerType) bool {
    		if containerName == c.Name {
    			containerSpec = c
    			return false
    		}
    		return true
    	})
    	return containerSpec
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/constants.go

    const RootTypeReferenceName = "Object"
    
    // ObjectTraits is the bitmask that represents traits that an object should have.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 897 bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h

        return new Iterator(this, container_.end());
      }
    
     private:
      typedef typename ::std::vector<T> ContainerType;
    
      class Iterator : public ParamIteratorInterface<T> {
       public:
        Iterator(const ParamGeneratorInterface<T>* base,
                 typename ContainerType::const_iterator iterator)
            : base_(base), iterator_(iterator) {}
        virtual ~Iterator() {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelMapModelProjection.java

            return Collections.singleton(baseItemModelType.getConcreteClass());
        }
    
        private String getContainerTypeDescription(Class<?> containerType, Collection<? extends Class<?>> creatableTypes) {
            StringBuilder sb = new StringBuilder(containerType.getName());
            if (creatableTypes.size() == 1) {
                @SuppressWarnings("ConstantConditions")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. pkg/api/v1/pod/util_test.go

    		}
    	}
    }
    
    func TestVisitContainers(t *testing.T) {
    	setAllFeatureEnabledContainersDuringTest := ContainerType(0)
    	testCases := []struct {
    		desc           string
    		spec           *v1.PodSpec
    		wantContainers []string
    		mask           ContainerType
    	}{
    		{
    			desc:           "empty podspec",
    			spec:           &v1.PodSpec{},
    			wantContainers: []string{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  8. pkg/security/apparmor/helpers.go

    		pod.Spec.SecurityContext.AppArmorProfile.Type != v1.AppArmorProfileTypeUnconfined {
    		return true
    	}
    
    	inUse := !podutil.VisitContainers(&pod.Spec, podutil.AllContainers, func(c *v1.Container, _ podutil.ContainerType) bool {
    		if c.SecurityContext != nil && c.SecurityContext.AppArmorProfile != nil &&
    			c.SecurityContext.AppArmorProfile.Type != v1.AppArmorProfileTypeUnconfined {
    			return false // is in use; short-circuit
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 18:46:32 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h

        return new Iterator(this, container_.end());
      }
    
     private:
      typedef typename ::std::vector<T> ContainerType;
    
      class Iterator : public ParamIteratorInterface<T> {
       public:
        Iterator(const ParamGeneratorInterface<T>* base,
                 typename ContainerType::const_iterator iterator)
            : base_(base), iterator_(iterator) {}
        virtual ~Iterator() {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/strategy.go

    }
    
    func podHasContainerWithName(pod *api.Pod, containerName string) bool {
    	var hasContainer bool
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(c *api.Container, containerType podutil.ContainerType) bool {
    		if c.Name == containerName {
    			hasContainer = true
    			return false
    		}
    		return true
    	})
    	return hasContainer
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top