- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 470 for replicaSet (0.42 sec)
-
pkg/registry/apps/replicaset/storage/storage_test.go
obj, err := storage.Create(ctx, &rs, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}) if err != nil { t.Errorf("Failed to create ReplicaSet, %v", err) } newRS := obj.(*apps.ReplicaSet) return *newRS, nil } func validNewReplicaSet() *apps.ReplicaSet { return &apps.ReplicaSet{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: metav1.NamespaceDefault, }, Spec: apps.ReplicaSetSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 17.7K bytes - Viewed (0) -
pkg/registry/apps/replicaset/strategy_test.go
fakeImage = "fakeimage" replicasetName = "test-replicaset" namespace = "test-namespace" ) func TestReplicaSetStrategy(t *testing.T) { ctx := genericapirequest.NewDefaultContext() if !Strategy.NamespaceScoped() { t.Errorf("ReplicaSet must be namespace scoped") } if Strategy.AllowCreateOnUpdate() { t.Errorf("ReplicaSet should not allow create on update") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 09 21:04:31 UTC 2021 - 6.9K bytes - Viewed (0) -
pkg/controller/deployment/sync.go
alreadyExists = true // Fetch a copy of the ReplicaSet. rs, rsErr := dc.rsLister.ReplicaSets(newRS.Namespace).Get(newRS.Name) if rsErr != nil { return nil, rsErr } // If the Deployment owns the ReplicaSet and the ReplicaSet's PodTemplateSpec is semantically // deep equal to the PodTemplateSpec of the Deployment, it's the Deployment's new ReplicaSet.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 24.5K bytes - Viewed (0) -
pkg/registry/apps/replicaset/strategy.go
newRS := obj.(*apps.ReplicaSet) oldRS := old.(*apps.ReplicaSet) // update is not allowed to set spec newRS.Spec = oldRS.Spec } func (rsStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { return appsvalidation.ValidateReplicaSetStatusUpdate(obj.(*apps.ReplicaSet), old.(*apps.ReplicaSet)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 16 21:06:43 UTC 2022 - 9.3K bytes - Viewed (0) -
pkg/controller/replicaset/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package replicaset contains logic for watching and synchronizing // ReplicaSets.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 16 17:48:21 UTC 2016 - 730 bytes - Viewed (0) -
pkg/controller/deployment/util/deployment_util.go
func FindOldReplicaSets(deployment *apps.Deployment, rsList []*apps.ReplicaSet) ([]*apps.ReplicaSet, []*apps.ReplicaSet) { var requiredRSs []*apps.ReplicaSet var allRSs []*apps.ReplicaSet newRS := FindNewReplicaSet(deployment, rsList) for _, rs := range rsList { // Filter out new replica set if newRS != nil && rs.UID == newRS.UID { continue } allRSs = append(allRSs, rs) if *(rs.Spec.Replicas) != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 07:09:11 UTC 2023 - 39.3K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller.go
if len(ds) == 0 { return } logger.V(4).Info("Orphan ReplicaSet updated", "replicaSet", klog.KObj(curRS)) for _, d := range ds { dc.enqueueDeployment(d) } } } // deleteReplicaSet enqueues the deployment that manages a ReplicaSet when // the ReplicaSet is deleted. obj could be an *apps.ReplicaSet, or // a DeletionFinalStateUnknown marker item.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example2/v1/zz_generated.conversion.go
if err := s.AddGeneratedConversionFunc((*ReplicaSet)(nil), (*example.ReplicaSet)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_ReplicaSet_To_example_ReplicaSet(a.(*ReplicaSet), b.(*example.ReplicaSet), scope) }); err != nil { return err } if err := s.AddGeneratedConversionFunc((*example.ReplicaSet)(nil), (*ReplicaSet)(nil), func(a, b interface{}, scope conversion.Scope) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 5.7K bytes - Viewed (0) -
pkg/registry/apps/replicaset/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package replicaset provides Registry interface and it's RESTStorage // implementation for storing ReplicaSet api objects.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 18:29:06 UTC 2018 - 774 bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_utils_test.go
longMinReadySecondsRS := newReplicaSet(1, fullLabelMap) longMinReadySecondsRS.Spec.MinReadySeconds = 3600 rsStatusTests := []struct { name string replicaset *apps.ReplicaSet filteredPods []*v1.Pod expectedReplicaSetStatus apps.ReplicaSetStatus }{ { "1 fully labelled pod", fullyLabelledRS, []*v1.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 19 20:18:23 UTC 2018 - 6.6K bytes - Viewed (0)