Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,

I'm using the latest version(5.2.2) of the operator framework and the sample "Dependent Resource Shared by Multiple Owners".

The share config-map will be maintained by the CRD's, but if you change the config map external by example with freelens adding addition data.
The reconcile is doing it's thing to reconsile and the desired state per applied crd's, but it will not detect that the extra data is there while that should actually been deleted.

How to solve that problem.

Thnxs

You must be logged in to vote

Replies: 1 comment · 3 replies

Comment options

Hi @mancave , the reason is that it the dependent resource is using SSA, see:

SSA does not delete the other fields, which are not managed by the controller.

The framework by default not uses SSA for config maps but it is required for this sample, so it adds owner references properly.

Note that dependent resources are quite limited for this use case. I will create an issue to enhance that, and showcase how it could be done, but note that it will probably feel "hacky". So might be just easier for you to use just the base level API, simply manipulate the resource using the client to tailor the logic to you needs.

You must be logged in to vote
3 replies
@csviri
Comment options

see also SSA: https://kubernetes.io/docs/reference/using-api/server-side-apply/

@csviri
Comment options

And one more thing, I plan to take a look on this one also:
#2920
To enhance this sample, but basically, there should be only one controller always, so that raises also philosophical question regarding responsibilities.

@csviri
Comment options

#3124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.