- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for setCreationTimestamp (0.66 sec)
-
pilot/pkg/model/proxy_config_test.go
configs: []config.Config{ setCreationTimestamp(newProxyConfig("workload-a", "test-ns", &v1beta1.ProxyConfig{ Selector: selector(map[string]string{ "test": "selector", }), EnvironmentVariables: map[string]string{ "A": "1", }, }), now), setCreationTimestamp(newProxyConfig("workload-b", "test-ns", &v1beta1.ProxyConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 21 01:23:19 UTC 2023 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go
o.lock.RLock() defer o.lock.RUnlock() return o.object.GetCreationTimestamp() } func (o *cachingObject) SetCreationTimestamp(timestamp metav1.Time) { o.conditionalSet( func() bool { return o.object.GetCreationTimestamp() == timestamp }, func() { o.object.SetCreationTimestamp(timestamp) }, ) } func (o *cachingObject) GetDeletionTimestamp() *metav1.Time { o.lock.RLock() defer o.lock.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 18:03:48 UTC 2023 - 12.6K bytes - Viewed (0) -
operator/pkg/verifier/verifier.go
} v.logger.LogAndPrintf("%s Istio is installed and verified successfully", v.successMarker) return nil } func fixTimestampRelatedUnmarshalIssues(un *unstructured.Unstructured) { un.SetCreationTimestamp(metav1.Time{}) // UnmarshalIstioOperator chokes on these // UnmarshalIstioOperator fails because managedFields could contain time // and gogo/protobuf/jsonpb(v1.3.1) tries to unmarshal it as struct (the type
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 15K bytes - Viewed (0) -
operator/pkg/validate/common.go
// This also preserves iopYAML if it is ""; we don't want iopYAML to be the string "null" if len(mapIOP) > 0 { un := &unstructured.Unstructured{Object: mapIOP} un.SetCreationTimestamp(metav1.Time{}) // UnmarshalIstioOperator chokes on these iopYAML = util.ToYAML(un) } iop := &v1alpha1.IstioOperator{} if err := yaml.UnmarshalStrict([]byte(iopYAML), iop); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/update.go
if len(objectMeta.GetUID()) == 0 { objectMeta.SetUID(oldMeta.GetUID()) } // ignore changes to timestamp if oldCreationTime := oldMeta.GetCreationTimestamp(); !oldCreationTime.IsZero() { objectMeta.SetCreationTimestamp(oldMeta.GetCreationTimestamp()) } // an update can never remove/change a deletion timestamp if !oldMeta.GetDeletionTimestamp().IsZero() { objectMeta.SetDeletionTimestamp(oldMeta.GetDeletionTimestamp()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go
var timestamp metav1.Time timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "creationTimestamp")) return timestamp } func (u *Unstructured) SetCreationTimestamp(timestamp metav1.Time) { ts, _ := timestamp.MarshalQueryParameter() if len(ts) == 0 || timestamp.Time.IsZero() { RemoveNestedField(u.Object, "metadata", "creationTimestamp") return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 13.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go
unstruct.SetGenerateName("test_generateName") unstruct.SetUID(types.UID("test_uid")) unstruct.SetResourceVersion("test_resourceVersion") unstruct.SetSelfLink("test_selfLink") unstruct.SetCreationTimestamp(metav1.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)) date := metav1.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC) unstruct.SetDeletionTimestamp(&date)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go
func (a genericAccessor) SetSelfLink(selfLink string) { *a.selfLink = selfLink } func (a genericAccessor) GetCreationTimestamp() metav1.Time { return *a.creationTimestamp } func (a genericAccessor) SetCreationTimestamp(timestamp metav1.Time) { *a.creationTimestamp = timestamp } func (a genericAccessor) GetDeletionTimestamp() *metav1.Time { return *a.deletionTimestamp }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 16.5K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
return nil, err } // IstioOperator isn't part of pkg/config/schema/collections, // usual conversion not available. Convert unstructured to string // and ask operator code to check. un.SetCreationTimestamp(metav1.Time{}) // UnmarshalIstioOperator chokes on these by := util.ToYAML(un) iop, err := operatoristio.UnmarshalIstioOperator(by, false) if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 22 17:58:52 UTC 2024 - 15K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
t.Fatalf("ToUnstructured failed: %v", err) } unstructObj := &metaunstruct.Unstructured{} unstructObj.Object = unstrBody if meta, err := meta.Accessor(unstructObj); err == nil { meta.SetCreationTimestamp(metav1.Time{}) } else { t.Fatalf("Unable to set creation timestamp: %v", err) } // attempt to re-convert unstructured object - conversion should not fail
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0)