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

Add --opencost flag to specify standard OpenCost settings #156

Open
mattray opened this issue May 8, 2023 · 3 comments
Open

Add --opencost flag to specify standard OpenCost settings #156

mattray opened this issue May 8, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers OpenCost

Comments

@mattray
Copy link
Contributor

mattray commented May 8, 2023

When using kubectl cost with OpenCost, there are a bunch of boilerplate CLI options you have to add:
--service-port 9003 --service-name opencost --kubecost-namespace opencost --allocation-path /allocation/compute

It would be handy to just pass --opencost and get all of those set by default (while still allowing for being more specific if needed).

@michaelmdresser michaelmdresser added enhancement New feature or request good first issue Good for newcomers OpenCost and removed needs-triage labels Nov 4, 2023
@michaelmdresser
Copy link
Contributor

I like this idea. This is a great small change if a community member would like to contribute. Matt's comment about "while still allowing for more [specificity]" is particularly pertinent. This would be the area of code to look at to contribute:

func (o *QueryBackendOptions) Complete(restConfig *rest.Config) error {

cc @kwombach12 apologies for the spam lately, I'm not sure how you'd like to track enhancement requests for this project.

@vladComan0
Copy link
Contributor

Hi guys! I'd like to pick this up if possible.

@mattray
Copy link
Contributor Author

mattray commented Jul 5, 2024

Go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers OpenCost
Projects
None yet
Development

No branches or pull requests

3 participants