-
Notifications
You must be signed in to change notification settings - Fork 416
Closed
kcp-dev/kubernetes
#132Labels
lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
When completing the replication_test.go
e2e cache test with replication scenarios of rbac resources (CR / CRB objects), the generation is not equal when comparing original and cached objects.
I added a TODO in the completed test:
kcp/test/e2e/reconciler/cache/replication_test.go
Lines 706 to 716 in cf8a625
// TODO(davidfestal): find out why the generation is not the same especially for rbacv1. Is it a characteristic of all | |
// internal KCP resources (which are not backed by CRDs) ? | |
if b.gvr.Group == rbacv1.SchemeGroupVersion.Group { | |
unstructured.RemoveNestedField(originalResource.Object, "metadata", "generation") | |
unstructured.RemoveNestedField(cachedResource.Object, "metadata", "generation") | |
} | |
unstructured.RemoveNestedField(cachedResource.Object, "metadata", "annotations", genericapirequest.AnnotationKey) | |
if cachedStatus, ok := cachedResource.Object["status"]; ok && cachedStatus == nil || (cachedStatus != nil && len(cachedStatus.(map[string]interface{})) == 0) { | |
// TODO: worth investigating: |
Maybe the work done for CRD-backed resources in this PR should also be done for built-in resources that support replication ?
Metadata
Metadata
Assignees
Labels
lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Type
Projects
Status
Done