- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for setCreationTimestamp (0.46 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/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
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) u.SetFinalizers(nil) u.SetManagedFields(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.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) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go
existingMeta.SetResourceVersion("") // fields made immutable in validation existingMeta.SetUID(types.UID("")) existingMeta.SetName("") existingMeta.SetNamespace("") existingMeta.SetCreationTimestamp(Time{}) existingMeta.SetDeletionTimestamp(nil) existingMeta.SetDeletionGracePeriodSeconds(nil) existingMeta.SetManagedFields(nil) if !reflect.DeepEqual(meta, existingMeta) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.1K 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) -
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)