Skip to content

Conversation

@Tomek-Adamczewski
Copy link

No description provided.

Tomek added 2 commits March 6, 2024 11:45
Previous implementation was using DELETE /config/{subject} to remove
schema from registry. According to
https://docs.confluent.io/platform/current/schema-registry/develop/api.html#config,
this endpoint "Deletes the specified subject-level compatibility level
config and reverts to the global default" instead of actually deleting
the schema.

I've decided to only soft-delete the schema (instead of permanent
hard-delete), because the same schema object could potentially be
referenced by other subjects.
1. fixed indentation of serviceAccountName
2. fixed values for SCHEMA_REGISTRY_KEY and SCHEMA_REGISTRY_SECRET
@pannoi pannoi added the enhancement New feature or request label Mar 7, 2024
@pannoi pannoi self-assigned this Mar 7, 2024
@pannoi
Copy link
Owner

pannoi commented Mar 7, 2024

@Tomek-Adamczewski First of all thanks for the contribution. I will test your changes soon and get back here
Also want to suggest updating CRD with an additional parameter: deletionPolicy: hard/soft | default soft and call method depending on that parameter. Will be waiting for your feedback.
If you agree on my proposal, will contribute to the PR.

@pannoi
Copy link
Owner

pannoi commented Mar 10, 2024

I created a new PR with respect to your changes and an updated parameter which I suggested above, please review here
and feel free to update it with any comments.

I will close this PR just so as not to keep duplications.

One more time, thanks for your contribution

@pannoi pannoi closed this Mar 10, 2024
@Tomek-Adamczewski
Copy link
Author

Tomek-Adamczewski commented Mar 13, 2024 via email

@Tomek-Adamczewski Tomek-Adamczewski deleted the fix/soft_deleting_schema_subjects branch March 15, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants