- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SetCommonEncodingVersion (0.19 sec)
-
staging/src/k8s.io/apiserver/pkg/storageversion/updater.go
Get(context.Context, string, metav1.GetOptions) (*v1alpha1.StorageVersion, error) } // SetCommonEncodingVersion updates the CommonEncodingVersion and the AllEncodingVersionsEqual // condition based on the StorageVersions. func SetCommonEncodingVersion(sv *v1alpha1.StorageVersion) { var oldCommonEncodingVersion *string if sv.Status.CommonEncodingVersion != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 22:40:54 UTC 2023 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storageversion/updater_test.go
}, expectLastTransitionTimeUpdate: true, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { sv := &v1alpha1.StorageVersion{Status: tc.old} SetCommonEncodingVersion(sv) if (tc.expectLastTransitionTimeUpdate && sv.Status.Conditions[0].LastTransitionTime.IsZero()) || (!tc.expectLastTransitionTimeUpdate && !sv.Status.Conditions[0].LastTransitionTime.IsZero()) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 22:40:54 UTC 2023 - 8.7K bytes - Viewed (0) -
pkg/controller/storageversiongc/gc_controller.go
return c.kubeclientset.InternalV1alpha1().StorageVersions().Delete( ctx, sv.Name, metav1.DeleteOptions{}) } sv.Status.StorageVersions = serverStorageVersions storageversion.SetCommonEncodingVersion(sv) _, err := c.kubeclientset.InternalV1alpha1().StorageVersions().UpdateStatus( ctx, sv, metav1.UpdateOptions{}) return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 10K bytes - Viewed (0)