Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,239 for appns (0.22 sec)

  1. pkg/controller/deployment/progress.go

    // to deployment conditions.
    func (dc *DeploymentController) getReplicaFailures(allRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet) []apps.DeploymentCondition {
    	var conditions []apps.DeploymentCondition
    	if newRS != nil {
    		for _, c := range newRS.Status.Conditions {
    			if c.Type != apps.ReplicaSetReplicaFailure {
    				continue
    			}
    			conditions = append(conditions, util.ReplicaSetToDeploymentCondition(c))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 11:00:44 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. pkg/registry/apps/controllerrevision/storage/storage.go

    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &apps.ControllerRevision{} },
    		NewListFunc:               func() runtime.Object { return &apps.ControllerRevisionList{} },
    		DefaultQualifiedResource:  apps.Resource("controllerrevisions"),
    		SingularQualifiedResource: apps.Resource("controllerrevision"),
    
    		CreateStrategy: controllerrevision.Strategy,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. pkg/registry/apps/deployment/storage/storage_test.go

    func validNewDeployment() *apps.Deployment {
    	return &apps.Deployment{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: namespace,
    		},
    		Spec: apps.DeploymentSpec{
    			Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"a": "b"}},
    			Strategy: apps.DeploymentStrategy{
    				Type: apps.RollingUpdateDeploymentStrategyType,
    				RollingUpdate: &apps.RollingUpdateDeployment{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  4. pkg/registry/apps/statefulset/strategy.go

    		"apps/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears the status of an StatefulSet before creation.
    func (statefulSetStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	statefulSet := obj.(*apps.StatefulSet)
    	// create cannot set status
    	statefulSet.Status = apps.StatefulSetStatus{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:10 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  5. pkg/registry/apps/controllerrevision/storage/storage_test.go

    	return &apps.ControllerRevision{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: namespace,
    			Labels:    map[string]string{"foo": "bar"},
    		},
    		Data:     data,
    		Revision: revision,
    	}
    }
    
    func stripObjectMeta(revision *apps.ControllerRevision) *apps.ControllerRevision {
    	revision.ObjectMeta = metav1.ObjectMeta{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 5.6K bytes
    - Viewed (0)
  6. pkg/apis/extensions/register.go

    	// TODO this gets cleaned up when the types are fixed
    	scheme.AddKnownTypes(SchemeGroupVersion,
    		&apps.Deployment{},
    		&apps.DeploymentList{},
    		&apps.DeploymentRollback{},
    		&apps.DaemonSetList{},
    		&apps.DaemonSet{},
    		&networking.Ingress{},
    		&networking.IngressList{},
    		&apps.ReplicaSet{},
    		&apps.ReplicaSetList{},
    		&autoscaling.Scale{},
    		&networking.NetworkPolicy{},
    		&networking.NetworkPolicyList{},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 06 09:07:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. pkg/registry/apps/deployment/strategy.go

    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"apps/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears fields that are not allowed to be set by end users on creation.
    func (deploymentStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	deployment := obj.(*apps.Deployment)
    	deployment.Status = apps.DeploymentStatus{}
    	deployment.Generation = 1
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:07:13 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  8. pkg/controller/deployment/sync.go

    // This may lead to stale reads of replica sets, thus incorrect deployment status.
    func (dc *DeploymentController) getAllReplicaSetsAndSyncRevision(ctx context.Context, d *apps.Deployment, rsList []*apps.ReplicaSet, createIfNotExisted bool) (*apps.ReplicaSet, []*apps.ReplicaSet, error) {
    	_, allOldRSs := deploymentutil.FindOldReplicaSets(d, rsList)
    
    	// Get new replica set with the updated revision number
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  9. pkg/registry/apps/deployment/storage/storage.go

    	storeerr "k8s.io/apiserver/pkg/storage/errors"
    	"k8s.io/apiserver/pkg/util/dryrun"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/apis/apps"
    	appsv1beta1 "k8s.io/kubernetes/pkg/apis/apps/v1beta1"
    	appsv1beta2 "k8s.io/kubernetes/pkg/apis/apps/v1beta2"
    	appsvalidation "k8s.io/kubernetes/pkg/apis/apps/validation"
    	"k8s.io/kubernetes/pkg/apis/autoscaling"
    	autoscalingv1 "k8s.io/kubernetes/pkg/apis/autoscaling/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  10. pkg/registry/apps/replicaset/strategy_test.go

    			},
    		},
    	}
    	rs := &apps.ReplicaSet{
    		ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
    		Spec: apps.ReplicaSetSpec{
    			Selector: &metav1.LabelSelector{MatchLabels: validSelector},
    			Template: validPodTemplate.Template,
    		},
    		Status: apps.ReplicaSetStatus{
    			Replicas:           1,
    			ObservedGeneration: int64(10),
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K bytes
    - Viewed (0)
Back to top