Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

don't parse resource version#35

Open
stevekuznetsov wants to merge 1 commit into
artemiscloud:mainfrom
stevekuznetsov:skuznets/stop-parsing-resource-version
Open

don't parse resource version#35
stevekuznetsov wants to merge 1 commit into
artemiscloud:mainfrom
stevekuznetsov:skuznets/stop-parsing-resource-version

Conversation

@stevekuznetsov

Copy link
Copy Markdown

Parsing the resourceVersion as an integer is strictly prohibited by the Kubernetes API [1]. During a review of code that would be affected by non-numerical resourceVersions, I came upon this code. As the parsed data is not used for anything, it looks like it's possible to simply remove this parsing logic.

[1] https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions

Signed-off-by: Steve Kuznetsov skuznets@redhat.com

@stevekuznetsov
stevekuznetsov force-pushed the skuznets/stop-parsing-resource-version branch from ad2f60c to 4157e68 Compare November 28, 2022 16:32
@stevekuznetsov stevekuznetsov changed the title don't parse reosurce version don't parse resource version Nov 28, 2022
Parsing the resourceVersion as an integer is strictly prohibited by the
Kubernetes API [1]. During a review of code that would be affected by
non-numerical resourceVersions, I came upon this code. As the parsed
data is not used for anything, it looks like it's possible to simply
remove this parsing logic.

[1] https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@stevekuznetsov
stevekuznetsov force-pushed the skuznets/stop-parsing-resource-version branch from 4157e68 to d4034b9 Compare November 28, 2022 16:33
@tlbueno
tlbueno requested a review from rhmkrutov November 28, 2022 18:57
@tlbueno

tlbueno commented Nov 28, 2022

Copy link
Copy Markdown
Contributor

I just marked @mkrutov as the reviewer of this.
As I see I think this is fine to get removed but I would like to get @mkrutov input before merge it.

@stevekuznetsov

Copy link
Copy Markdown
Author

Thanks for taking a look, @tlbueno !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants