Keycloak 23 in Kubernetes is importing realm every single time

Hi - I am trying to migrate my Keycloak 15 to Keycloak 23 and have it almost working bar one issue… No matter what I seem to try I get the following…

2023-12-05 15:54:35,856 INFO [org.keycloak.services] (main) KC-SERVICES0030: Full model import requested. Strategy: IGNORE_EXISTING
2023-12-05 15:54:46,149 INFO [org.keycloak.exportimport.util.ImportUtils] (main) Realm ‘myrealm’ imported

Even though I have the migration strategy of IGNORE_EXISTING it doesn’t seem to pick up that the realm already exists and re-imports it.

I have tried this in docker and have had no such problems. (Granted it’s a stripped down version but still). I wondered was there something wrong with the persistence of my realm but I can see it in the database.

I am using kc.sh start --import-realm and have my realm file in /opt/keycloak/data/import/. It imports no problem but the problem is just that it imports every time.

Any ideas?

Thanks