Skip to content

Fix linkerd check --proxy with default ns param#2754

Merged
siggy merged 1 commit intomasterfrom
siggy/fix-data-plane-default-ns
Apr 25, 2019
Merged

Fix linkerd check --proxy with default ns param#2754
siggy merged 1 commit intomasterfrom
siggy/fix-data-plane-default-ns

Conversation

@siggy
Copy link
Member

@siggy siggy commented Apr 25, 2019

The linkerd check --proxy command checks for proxies in all
namespaces, if the --namespace flag is not set. PR #2747 modified the
behavior of KubernetesAPI.NamespaceExists. Previously it would succeed
if given an emptry string for a namespace. Now it fails with a
resource name may not be empty error (for k8s server v1.10.11), or a
not found error (for our fake test client).

Modify the data plane proxy namespace check to return success if the
namespace is not set.

Signed-off-by: Andrew Seigner [email protected]

@siggy siggy requested review from alpeb and ihcsim April 25, 2019 23:03
@siggy siggy self-assigned this Apr 25, 2019
Copy link
Contributor

@ihcsim ihcsim left a comment

Choose a reason for hiding this comment

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

LGTM 👍

The `linkerd check --proxy` command checks for proxies in all
namespaces, if the `--namespace` flag is not set. PR #2747 modified the
behavior of `KubernetesAPI.NamespaceExists`. Previously it would succeed
if given an emptry string for a namespace. Now it fails with a
`resource name may not be empty` error (for k8s server `v1.10.11`), or a
not found error (for our fake test client).

Modify the data plane proxy namespace check to return success if the
namespace is not set.

Signed-off-by: Andrew Seigner <[email protected]>

fix lint

Signed-off-by: Andrew Seigner <[email protected]>
@siggy siggy force-pushed the siggy/fix-data-plane-default-ns branch from f31a720 to 8c0945a Compare April 25, 2019 23:28
@siggy siggy merged commit dec620f into master Apr 25, 2019
@siggy siggy deleted the siggy/fix-data-plane-default-ns branch April 25, 2019 23:37
@l5d-bot
Copy link
Collaborator

l5d-bot commented Apr 25, 2019

@alpeb
Copy link
Member

alpeb commented Apr 25, 2019

Lookgs good to me 👍

@alpeb
Copy link
Member

alpeb commented Apr 25, 2019

Integration tests did succeed in my local btw

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