- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for ManagedFieldsEntry (0.33 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields_test.go
func TestSortEncodedManagedFields(t *testing.T) { tests := []struct { name string managedFields []metav1.ManagedFieldsEntry expected []metav1.ManagedFieldsEntry }{ { name: "empty", managedFields: []metav1.ManagedFieldsEntry{}, expected: []metav1.ManagedFieldsEntry{}, }, { name: "nil", managedFields: nil, expected: nil, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/scalehandler_test.go
func TestTransformingManagedFieldsToParent(t *testing.T) { tests := []struct { desc string parent []metav1.ManagedFieldsEntry subresource []metav1.ManagedFieldsEntry expected []metav1.ManagedFieldsEntry }{ { desc: "different-managers: apply -> update", parent: []metav1.ManagedFieldsEntry{ { Manager: "test", Operation: metav1.ManagedFieldsOperationApply, APIVersion: "apps/v1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 23.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/capmanagers_test.go
} b, err := s.ToJSON() if err != nil { panic(fmt.Sprintf("error building ManagedFieldsEntry for test: %v", err)) } return &metav1.FieldsV1{Raw: b} } entry := func(name string, version string, order int, fields *metav1.FieldsV1) metav1.ManagedFieldsEntry { return metav1.ManagedFieldsEntry{ Manager: name, APIVersion: version, Operation: "Update", FieldsType: "FieldsV1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 10.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission_test.go
managedFields.APIVersion = "" return managedFields, true }, "invalid Operation": func(managedFields metav1.ManagedFieldsEntry) (metav1.ManagedFieldsEntry, bool) { managedFields.Operation = "invalid operation" return managedFields, true }, "invalid fieldsType": func(managedFields metav1.ManagedFieldsEntry) (metav1.ManagedFieldsEntry, bool) { managedFields.FieldsType = "invalid fieldsType"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 12 21:32:54 UTC 2023 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields.go
} managed.times[manager] = encodedVersionedSet.Time } return &managed, nil } // BuildManagerIdentifier creates a manager identifier string from a ManagedFieldsEntry func BuildManagerIdentifier(encodedManager *metav1.ManagedFieldsEntry) (manager string, err error) { encodedManagerCopy := *encodedManager // Never include fields type in the manager identifier encodedManagerCopy.FieldsType = ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract_test.go
} }) } } func applyFieldsEntry(fieldManager string, fieldsJSON string, subresource string) metav1.ManagedFieldsEntry { return metav1.ManagedFieldsEntry{ Manager: fieldManager, Operation: metav1.ManagedFieldsOperationApply, APIVersion: "v1", FieldsType: "FieldsV1", FieldsV1: &metav1.FieldsV1{Raw: []byte(fieldsJSON)},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 22 22:32:45 UTC 2021 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/scalehandler.go
// resource and the scale subresource type ScaleHandler struct { parentEntries []metav1.ManagedFieldsEntry groupVersion schema.GroupVersion mappings ResourcePathMappings } // NewScaleHandler creates a new ScaleHandler func NewScaleHandler(parentEntries []metav1.ManagedFieldsEntry, groupVersion schema.GroupVersion, mappings ResourcePathMappings) *ScaleHandler { return &ScaleHandler{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfieldsupdater_test.go
"name": "configmap" }, "data": { "key_b": "value" } }`)) if err != nil { t.Fatal(err) } previousManagedFields := f.ManagedFields() previousEntries := map[string]v1.ManagedFieldsEntry{} for _, entry := range previousManagedFields { previousEntries[entry.Manager] = entry } time.Sleep(time.Second) err = updateObject(f, "fieldmanager_a_test", []byte(`{ "apiVersion": "v1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 13.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/managedfields_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 16 14:52:03 UTC 2021 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/request_test.go
{ name: "object specified is a meta.Accessor and has managed fields", object: &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "bar", ManagedFields: []metav1.ManagedFieldsEntry{ {Manager: "a", Operation: metav1.ManagedFieldsOperationUpdate, Time: &metav1.Time{Time: time.Now()}}, {Manager: "b", Operation: metav1.ManagedFieldsOperationUpdate, Time: &metav1.Time{Time: time.Now()}}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 29 00:03:53 UTC 2022 - 6.2K bytes - Viewed (0)