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

--namespace behaves as expected, applying to Kubecost request instead of Kubernetes request #33

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

michaelmdresser
Copy link
Contributor

This is a breaking API change. The previous behavior of --namespace/-n was to behave in the same way that it does in kubectl, where it scopes the Kubernetes API request. We want it to scope the Kubecost API request (when appropriate) instead.

The old behavior of --namespace/-n is now in
--kubecost-namespace/-N

Verified by using the new flag behavior (using the examples in the README, including against a staging installation using -N) against a GKE cluster.

This is a breaking API change. The previous behavior of
--namespace/-n was to behave in the same way that it does
in kubectl, where it scopes the Kubernetes API request. We
want it to scope the Kubecost API request (when
appropriate) instead.

The old behavior of --namespace/-n is now in
--kubecost-namespace/-N
@michaelmdresser michaelmdresser merged commit ed2f29b into main Mar 10, 2021
@michaelmdresser michaelmdresser deleted the mmd/more-ergonomic-namespace branch March 10, 2021 21:17
michaelmdresser added a commit that referenced this pull request Mar 15, 2021
Caused by #33

This logic is now handled by --kubecost-namespace.

Tested to verify no regression by using the -N and -n flags
on a GKE cluster with two kubecost deployments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants