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 constructing labelSelector and test label strings #4221

Merged
merged 1 commit into from
May 20, 2020

Conversation

tejal29
Copy link
Contributor

@tejal29 tejal29 commented May 19, 2020

In #4219 i added support for multiple labels to query.
However, the way i was constructing the listOptions, ended up setting json representation of the LabelSelector instead of actual label query.
e.g
kubectl get pods -l key1=value1, key2=value2

After reading this documentation/usage issue, kubernetes/apimachinery#47 i realized there is "k8s.io/apimachinery/pkg/labels package that has helpers methods to convert a key value pair to correct string format.

Tests not test the label query string.

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #4221 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
pkg/skaffold/runner/dev.go 66.66% <0.00%> (+0.25%) ⬆️
pkg/skaffold/runner/build_deploy.go 68.81% <0.00%> (+1.44%) ⬆️

@dgageot dgageot merged commit 98ac6f3 into GoogleContainerTools:master May 20, 2020
@tejal29 tejal29 deleted the fix_label_selector branch April 15, 2021 07:34
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