- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for setResourceVersion (0.18 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/api_object_versioner.go
accessor, err := meta.Accessor(obj) if err != nil { return err } versionString := "" if resourceVersion != 0 { versionString = strconv.FormatUint(resourceVersion, 10) } accessor.SetResourceVersion(versionString) return nil } // UpdateList implements Versioner func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64, nextKey string, count *int64) error { if resourceVersion == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 15:19:32 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go
SetNamespace(namespace string) GetName() string SetName(name string) GetGenerateName() string SetGenerateName(name string) GetUID() types.UID SetUID(uid types.UID) GetResourceVersion() string SetResourceVersion(version string) GetGeneration() int64 SetGeneration(generation int64) GetSelfLink() string SetSelfLink(selfLink string) GetCreationTimestamp() Time SetCreationTimestamp(timestamp Time)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.7K bytes - Viewed (0) -
pkg/api/testing/meta_test.go
continue case isLM: m := lm.GetListMeta() if m == nil { t.Errorf("%v (%v) returns nil ListMeta", gv.WithKind(kind), knownType) continue } m.SetResourceVersion("102030") if m.GetResourceVersion() != "102030" { t.Errorf("%v (%v) did not preserve resource version", gv.WithKind(kind), knownType) continue } case isOM: m := om.GetObjectMeta()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
// to check that omitempty fields having zero values are never set u.SetName("") u.SetGenerateName("") u.SetNamespace("") u.SetSelfLink("") u.SetUID("") u.SetResourceVersion("") u.SetGeneration(0) u.SetCreationTimestamp(metav1.Time{}) u.SetDeletionTimestamp(nil) u.SetDeletionGracePeriodSeconds(nil) u.SetLabels(nil) u.SetAnnotations(nil) u.SetOwnerReferences(nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object_test.go
} if object.deepCopied != false { t.Errorf("object deep-copied without the need") } object.SetResourceVersion("123") if object.deepCopied != false { t.Errorf("object deep-copied on no-op change") } object.SetResourceVersion("234") if object.deepCopied != true { t.Errorf("object not deep-copied on change") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 23 15:26:38 UTC 2022 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/api_meta_meta_test.go
} accessor.SetNamespace("baz") accessor.SetName("bar") accessor.SetGenerateName("generate") accessor.SetUID("other") typeAccessor.SetAPIVersion("c") typeAccessor.SetKind("d") accessor.SetResourceVersion("2") accessor.SetSelfLink("google.com") accessor.SetFinalizers([]string{"finalizer.3"}) // Prove that accessor changes the original object. if e, a := "baz", j.Namespace; e != a {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 12.9K bytes - Viewed (0) -
pkg/registry/networking/networkpolicy/strategy_test.go
if len(errs) != 0 { t.Errorf("Unexpected error from validation for created Network Policy: %v", errs) } updatedNetPol := makeNetworkPolicy(true, true, true) updatedNetPol.ObjectMeta.SetResourceVersion("1") Strategy.PrepareForUpdate(context.Background(), updatedNetPol, netPol) errs = Strategy.ValidateUpdate(context.Background(), updatedNetPol, netPol) if len(errs) != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/helper.go
return m.createResource(m.RESTClient, m.Resource, namespace, obj, options) } if version != "" { if err := metadataAccessor.SetResourceVersion(obj, ""); err != nil { return nil, err } } } return m.createResource(m.RESTClient, m.Resource, namespace, obj, options) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 26 03:45:13 UTC 2022 - 10.5K bytes - Viewed (0) -
operator/pkg/helmreconciler/apply_test.go
if err := clnt.Create(ctx, check); err != nil { return fmt.Errorf("could not inject object creation for fake: %w", err) } } else if err != nil { return err } obj.SetResourceVersion(check.GetResourceVersion()) return clnt.Update(ctx, obj) }} func TestHelmReconciler_ApplyObject(t *testing.T) { tests := []struct { name string currentState string input string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 12 17:12:54 UTC 2023 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go
if err != nil { return "", err } return accessor.GetResourceVersion(), nil } func (resourceAccessor) SetResourceVersion(obj runtime.Object, version string) error { accessor, err := CommonAccessor(obj) if err != nil { return err } accessor.SetResourceVersion(version) return nil } func (resourceAccessor) Continue(obj runtime.Object) (string, error) { accessor, err := ListAccessor(obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 16.5K bytes - Viewed (0)