Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for ContainerType (3.02 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/api/v1/pod/util.go

    		}
    	case intstr.Int:
    		return portName.IntValue(), nil
    	}
    
    	return 0, fmt.Errorf("no suitable port for manifest: %s", pod.UID)
    }
    
    // ContainerType signifies container type
    type ContainerType int
    
    const (
    	// Containers is for normal containers
    	Containers ContainerType = 1 << iota
    	// InitContainers is for init containers
    	InitContainers
    	// EphemeralContainers is for ephemeral containers
    	EphemeralContainers
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/CodeGenerator.kt

    
    private
    fun inaccessibleExistingContainerElementAccessorFor(containerType: String, name: AccessorNameSpec, elementType: TypeAccessibility.Inaccessible): String = name.run {
        """
            /**
             * Provides the existing `$original` element.
             *
             * ${documentInaccessibilityReasons(name, elementType)}
             */
            val $containerType.`$kotlinIdentifier`: NamedDomainObjectProvider<Any>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. 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)
  8. pkg/volume/util/nested_volumes.go

    				retval = append(retval, mp[len(myMPSlash):])
    			}
    		}
    		return nil
    	}
    
    	var retErr error
    	podutil.VisitContainers(&pod.Spec, podutil.AllFeatureEnabledContainers(), func(c *v1.Container, containerType podutil.ContainerType) bool {
    		retErr = checkContainer(c)
    		return retErr == nil
    	})
    	if retErr != nil {
    		return nil, retErr
    	}
    
    	return retval, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 12:19:17 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top