-
Notifications
You must be signed in to change notification settings - Fork 26
Add total cost on cluster create dry run #400
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 total cost on cluster create dry run #400
Conversation
pkg/types/cluster.go
Outdated
FlatFee int64 `json:"flat_fee"` | ||
TotalCredits int64 `json:"total_credits"` | ||
|
||
EstimatedCost int64 `json:"_"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this supposed to be a hyphen?
pkg/types/cluster.go
Outdated
FlatFee int64 `json:"flat_fee"` | ||
TotalCredits int64 `json:"total_credits"` | ||
|
||
EstimatedCost int64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you are going for here. Shouldn't this have some sort of json tag? If you were to list clusters --output json this probable doesn't look right the way it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I was thinking as EstimatedCost
is calculated (part of dry-run, or calculated for cluster list), it didn't have to go into json, but totally forgot about --output=json
Uh oh!
There was an error while loading. Please reload this page.