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

Preserve labels and fields when using CRD's withResourceVersion() #1425

Merged
merged 1 commit into from
Mar 14, 2019
Merged

Conversation

xguerin
Copy link

@xguerin xguerin commented Mar 8, 2019

The original implementation of CustomResourceOperationsImpl::withResourceVersion() uses a constructor that discards any previous alterations made with operations such as withLabel.

This patch adds the necessary constructors in BaseOperation, HasMetadataOperation and CustomResourceOperationsImpl to allow withResourceVersion() to preserve these fields.

@centos-ci
Copy link

Can one of the admins verify this patch?

@rohanKanojia
Copy link
Member

ok to test

@rohanKanojia rohanKanojia requested review from iocanel and oscerd March 8, 2019 11:12
Copy link
Member

@iocanel iocanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rohanKanojia rohanKanojia added the changelog missing A line to changelog.md regarding the change is not added label Mar 11, 2019
@rohanKanojia
Copy link
Member

@xguerin: Could you please add a line to changelog also? I think we're good to merge.

@xguerin
Copy link
Author

xguerin commented Mar 14, 2019

@rohanKanojia done.

@rohanKanojia
Copy link
Member

[merge]

@fusesource-ci fusesource-ci merged commit 3b8c85f into fabric8io:master Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog missing A line to changelog.md regarding the change is not added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants