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

Refactor some commands to reduce code duplication #116

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

michaelmdresser
Copy link
Contributor

What does this PR change?

Adds a command "generator" for common aggregation situations (not label)
and updates table writing to more generically accept arbitrary aggregation
levels. This will make future improvements to kubectl-cost easier by
reducing the amount of code that needs to be updated.

How was this PR tested?

Against a GKE cluster with Kubecost installed.

Uses a command "generator" for common aggregation situations (not label)
and updates table writing to more generically accept arbitrary aggregation
levels. This will make future improvements to kubectl-cost easier by
reducing the amount of code that needs to be updated.
@michaelmdresser michaelmdresser force-pushed the mmd/refactor-command-generation-allocation branch from 0217c06 to fb9e148 Compare June 15, 2022 19:43
@michaelmdresser michaelmdresser merged commit e4e9f40 into main Jun 15, 2022
@michaelmdresser michaelmdresser deleted the mmd/refactor-command-generation-allocation branch June 15, 2022 19:56
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.

None yet

2 participants