- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for setCreationTimestamp (0.38 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_list_test.go
// set an initial creationTimestamp and ensure the field exists u.SetCreationTimestamp(now) metadata := u.Object["metadata"].(map[string]interface{}) _, exists := metadata["creationTimestamp"] if !exists { t.Fatalf("unexpected missing creationTimestamp") } // set an empty timestamp and ensure the field no longer exists u.SetCreationTimestamp(metav1.Time{}) metadata = u.Object["metadata"].(map[string]interface{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 11 03:19:42 UTC 2020 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/meta.go
func WipeObjectMetaSystemFields(meta metav1.Object) { meta.SetCreationTimestamp(metav1.Time{}) meta.SetUID("") meta.SetDeletionTimestamp(nil) meta.SetDeletionGracePeriodSeconds(nil) meta.SetSelfLink("") } // FillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta. func FillObjectMetaSystemFields(meta metav1.Object) { meta.SetCreationTimestamp(metav1.Now()) meta.SetUID(uuid.NewUUID()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 19 01:47:23 UTC 2022 - 2.7K 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/apimachinery/pkg/apis/meta/v1/meta.go
GetResourceVersion() string SetResourceVersion(version string) GetGeneration() int64 SetGeneration(generation int64) GetSelfLink() string SetSelfLink(selfLink string) GetCreationTimestamp() Time SetCreationTimestamp(timestamp Time) GetDeletionTimestamp() *Time SetDeletionTimestamp(timestamp *Time) GetDeletionGracePeriodSeconds() *int64 SetDeletionGracePeriodSeconds(*int64) GetLabels() map[string]string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.7K 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)