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

fix(kubernetes/diff): check correctly & ignore apiVersion #12

Merged
merged 5 commits into from
Aug 7, 2019

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Aug 7, 2019

version check was broken, now auto choose should work correctly

ignores apiVersion, too messy for now

@sh0rez sh0rez added kind/bug Something isn't working component/kubernetes Working with Kubernetes clusters labels Aug 7, 2019
@sh0rez sh0rez requested a review from tomwilkie August 7, 2019 10:54
@sh0rez sh0rez self-assigned this Aug 7, 2019
sh0rez added 3 commits August 7, 2019 15:30
version check was broken, now auto choose should work correctly

ignores apiVersion, too messy for now
When a slice in the live system was larger than in the config, it lead to a
panic. This change makes the subset algorithm abort for the slice in this case,
as there are no entries to diff against anymore
does not really improve performance but hurts readability
Copy link
Member

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

single letter and 2 letter variable names are super hostile to new comers and should be avoided as much as possible. other than that, this makes sense.

pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
pkg/kubernetes/subsetdiff.go Outdated Show resolved Hide resolved
@sh0rez sh0rez merged commit 3248bb9 into master Aug 7, 2019
@sh0rez sh0rez deleted the subsetdiff-fix branch August 7, 2019 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes Working with Kubernetes clusters kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants