Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IdentfyingLabels to CreateOrUpdateWithOptions #1001

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

tpantelis
Copy link
Contributor

@tpantelis tpantelis commented Oct 4, 2024

If the GenerateName field is set in the target resource, the existing resource is searched for by the target's labels. However this assumes the labels remain static for the lifetime of the resource. If the labels are updated then the existing resource is not found and a new one is created. To avoid this, allow the user to specify which labels uniquely identify the resource by adding an IdentfyingLabels fields to CreateOrUpdateOptions.

Related to submariner-io/lighthouse#1646

If the GenerateName field is set in the target resource, the
existing resource is searched for by the target's labels. However
this assumes the labels remain static for the lifetime of the
resource. If the labels are updated then the existing resource is
not found and a new one is created. To avoid this, allow the user
to specify which labels uniquely identify the resource by adding
an IdentfyingLabels field to CreateOrUpdateOptions.

Signed-off-by: Tom Pantelis <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1001/tpantelis/create_or_update_labels

@skitt skitt merged commit 5380614 into submariner-io:devel Oct 7, 2024
18 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1001/tpantelis/create_or_update_labels]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants