reproduce:
oc delete keycloak ${keycloak instance name}
e.g. oc delete keycloak integreatly
works as expected - removes all related resources, but operator itself has an error in its logs:
time="2018-09-17T09:53:51Z" level=info msg="Keycloak: integreatly, Phase: provisioned"
time="2018-09-17T09:53:51Z" level=error msg="error syncing key (mogrodni/integreatly): Operation cannot be fulfilled on keycloaks.aerogear.org \"integreatly\": StorageError: invalid object, Code: 4, Key: /kubernetes.io/aerogear.org/keycloaks/mogrodni/integreatly, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 35538bc9-ba5f-11e8-89ec-0aa1040ba90a, UID in object meta: "
time="2018-09-17T09:53:51Z" level=info msg="Keycloak: integreatly, Phase: provisioned"
time="2018-09-17T09:53:52Z" level=error msg="error syncing key (mogrodni/integreatly): Operation cannot be fulfilled on keycloaks.aerogear.org \"integreatly\": StorageError: invalid object, Code: 4, Key: /kubernetes.io/aerogear.org/keycloaks/mogrodni/integreatly, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 35538bc9-ba5f-11e8-89ec-0aa1040ba90a, UID in object meta: "
reproduce:
oc delete keycloak ${keycloak instance name}
e.g.oc delete keycloak integreatly
works as expected - removes all related resources, but operator itself has an error in its logs: