Currently the client only has an import flag to import existing clients but when a client was created then the import has to be enabled.
But when the import is enabled then the client will never be created even when somebody deleted it manually.
As an improvement i suggest to add an 'upsert' or 'adopt' flag. When enabled both the of the branches should be tried in the client part of the code.
Currently the client only has an import flag to import existing clients but when a client was created then the import has to be enabled. But when the import is enabled then the client will never be created even when somebody deleted it manually.
As an improvement i suggest to add an 'upsert' or 'adopt' flag. When enabled both the of the branches should be tried in the client part of the code.
https://github.com/mrparkers/terraform-provider-keycloak/blob/master/provider/resource_keycloak_openid_client.go#L530-L554