Closed ccremer closed 4 years ago
@mhutter You are quite fluent in bash, maybe you can have a look into the e2e test files? :smile:
At the moment I'm investigating a double reconcile loop after creating a sync config...
2020-09-30T11:13:36.470+0200 INFO controllers.SyncConfig Reconciling {"SyncConfig": "espejo/espejo-e2e-test"}
2020-09-30T11:13:36.474+0200 INFO controllers.SyncConfig Created {"Object.Kind": "ConfigMap", "Object.Namespace": "e2e-test", "Object.Name": "espejo-e2e-test-data"}
2020-09-30T11:13:36.477+0200 INFO controllers.SyncConfig Updated SyncConfig {"SyncConfig": "espejo/espejo-e2e-test"}
2020-09-30T11:13:36.477+0200 INFO controllers.SyncConfig Reconciling {"SyncConfig": "espejo/espejo-e2e-test"}
2020-09-30T11:13:36.487+0200 INFO controllers.SyncConfig Updated {"Object.Kind": "ConfigMap", "Object.Namespace": "e2e-test", "Object.Name": "espejo-e2e-test-data"}
2020-09-30T11:13:36.490+0200 INFO controllers.SyncConfig Updated SyncConfig {"SyncConfig": "espejo/espejo-e2e-test"}
I took some time to read into Conditions from status and with the API changes now this works in the lab:
$ k wait --for condition=ready syncconfig/glusterfs-cluster
syncconfig.sync.appuio.ch/glusterfs-cluster condition met