Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 174 for podutil (0.13 sec)

  1. pkg/controller/daemon/update_test.go

    		if pod.DeletionTimestamp != nil {
    			continue
    		}
    		if podutil.IsPodReady(pod) == ready {
    			continue
    		}
    		if !fn(pod) {
    			continue
    		}
    		condition := v1.PodCondition{Type: v1.PodReady}
    		if ready {
    			condition.Status = v1.ConditionTrue
    		} else {
    			condition.Status = v1.ConditionFalse
    		}
    		if !podutil.UpdatePodCondition(&pod.Status, &condition) {
    			t.Fatal("failed to update pod")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. plugin/pkg/admission/noderestriction/admission.go

    	}
    	hasSecrets := false
    	podutil.VisitPodSecretNames(pod, func(name string) (shouldContinue bool) { hasSecrets = true; return false }, podutil.AllContainers)
    	if hasSecrets {
    		return admission.NewForbidden(a, fmt.Errorf("node %q can not create pods that reference secrets", nodeName))
    	}
    	hasConfigMaps := false
    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. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

    	coreinformers "k8s.io/client-go/informers/core/v1"
    	clientset "k8s.io/client-go/kubernetes"
    	listersv1 "k8s.io/client-go/listers/core/v1"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/klog/v2"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    	"k8s.io/kubernetes/pkg/controlplane/controller/legacytokentracking"
    	"k8s.io/kubernetes/pkg/serviceaccount"
    	"k8s.io/utils/clock"
    )
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/storage/eviction.go

    	"k8s.io/apiserver/pkg/util/feature"
    	policyclient "k8s.io/client-go/kubernetes/typed/policy/v1"
    	"k8s.io/client-go/util/retry"
    	pdbhelper "k8s.io/component-helpers/apps/poddisruptionbudget"
    	podutil "k8s.io/kubernetes/pkg/api/pod"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/apis/policy"
    	"k8s.io/kubernetes/pkg/features"
    )
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 11:58:48 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/graph.go

    		g.addEdgeToDestinationIndex_locked(e)
    	}
    
    	podutil.VisitPodSecretNames(pod, func(secret string) bool {
    		secretVertex := g.getOrCreateVertex_locked(secretVertexType, pod.Namespace, secret)
    		e := newDestinationEdge(secretVertex, podVertex, nodeVertex)
    		g.graph.SetEdge(e)
    		g.addEdgeToDestinationIndex_locked(e)
    		return true
    	})
    
    	podutil.VisitPodConfigmapNames(pod, func(configmap string) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. pkg/kubelet/preemption/preemption.go

    		err := c.killPodFunc(pod, true, nil, func(status *v1.PodStatus) {
    			status.Phase = v1.PodFailed
    			status.Reason = events.PreemptContainer
    			status.Message = message
    			if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
    				podutil.UpdatePodCondition(status, &v1.PodCondition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 16:53:19 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. pkg/controller/podautoscaler/replica_calculator.go

    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/util/sets"
    	corelisters "k8s.io/client-go/listers/core/v1"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    	metricsclient "k8s.io/kubernetes/pkg/controller/podautoscaler/metrics"
    )
    
    const (
    	// defaultTestingTolerance is default value for calculating when to
    	// scale up/scale down.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. plugin/pkg/admission/serviceaccount/admission.go

    			return admission.NewForbidden(a, fmt.Errorf("a mirror pod may not reference service accounts"))
    		}
    		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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. pkg/registry/core/pod/storage/storage.go

    			pod.Annotations[k] = v
    		}
    		podutil.UpdatePodCondition(&pod.Status, &api.PodCondition{
    			Type:   api.PodScheduled,
    			Status: api.ConditionTrue,
    		})
    		finalPod = pod
    		return pod, nil
    	}), dryRun, nil)
    	return finalPod, err
    }
    
    // assignPod assigns the given pod to the given machine.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set.go

    		// the Pod status which in turn will trigger a requeue of the owning replica set thus
    		// having its status updated with the newly available replica.
    		if !podutil.IsPodReady(oldPod) && podutil.IsPodReady(curPod) && set.Spec.MinReadySeconds > 0 {
    			logger.V(2).Info("StatefulSet will be enqueued after minReadySeconds for availability check", "statefulSet", klog.KObj(set), "minReadySeconds", set.Spec.MinReadySeconds)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top