- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for lastApplied (0.32 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastapplied.go
Antoine Pelisse <******@****.***> 1671748498 -0800
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedupdater_test.go
} lastApplied, err = getLastApplied(f.Live()) if err != nil { t.Errorf("failed to get last applied: %v", err) } if lastApplied == originalLastApplied || !strings.Contains(lastApplied, "my-app") || !strings.Contains(lastApplied, "my-image") { t.Errorf("expected last applied annotation to be updated, but got: %q", lastApplied) } } func TestLargeLastApplied(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
t.Errorf("failed to force server-side apply with: %v", err) } lastApplied, err = getLastApplied(f.Live()) if err != nil { t.Errorf("failed to get last applied: %v", err) } if lastApplied == invalidLastApplied || !strings.Contains(lastApplied, "my-app-v2") { t.Errorf("expected last applied annotation to be updated, but got: %q", lastApplied) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedupdater.go
if err != nil { panic(fmt.Sprintf("couldn't get accessor: %v", err)) } var annotations = accessor.GetAnnotations() if annotations == nil { return false } lastApplied, ok := annotations[LastAppliedConfigAnnotation] return ok && len(lastApplied) > 0 } func buildLastApplied(obj runtime.Object) (string, error) { obj = obj.DeepCopyObject() var accessor, err = meta.Accessor(obj) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go
var annotations = accessor.GetAnnotations() if annotations == nil { return nil, fmt.Errorf("no last applied annotation") } var lastApplied, ok = annotations[LastAppliedConfigAnnotation] if !ok || lastApplied == "" { return nil, fmt.Errorf("no last applied annotation") } liveObjVersioned, err := f.objectConverter.ConvertToVersion(liveObj, f.groupVersion) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager_test.go
if err := yaml.Unmarshal(test.original, &originalObj.Object); err != nil { t.Errorf("error decoding YAML: %v", err) } if test.lastApplied == nil { test.lastApplied = test.original } if err := setLastAppliedFromEncoded(originalObj, test.lastApplied); err != nil { t.Errorf("failed to set last applied: %v", err) } if err := f.Update(originalObj, "test_client_side_apply"); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 20K bytes - Viewed (0)