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 GPU flavor list commands for baremetal and virtual GPU resources #171

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

algis-dumbris
Copy link
Contributor

Implement comprehensive GPU flavor management:

  • Add flavor list commands for baremetal and virtual GPU resources
  • Create CLI commands with support for including prices and disabled flavors
  • Develop service client methods for retrieving GPU flavor lists
  • Integrate new flavor commands into the GPU command structure

Implement comprehensive GPU flavor management:
- Add flavor list commands for baremetal and virtual GPU resources
- Create CLI commands with support for including prices and disabled flavors
- Develop service client methods for retrieving GPU flavor lists
- Integrate new flavor commands into the GPU command structure
- Update flavor list command to exclude disabled flavors by default
- Modify flavor list options to invert disabled flag logic
- Enhance flavor price structure with more detailed price information
- Improve error handling in flavor list query generation
- Correct package name in client/gpu/v3/commands.go from v3 to gpu
- Update import statements in cmd/commands.go to use the new package name
- Ensure consistent package naming across GPU-related files
}

// FlavorURL returns URL for specific GPU flavor operations
func FlavorURL(c *gcorecloud.ServiceClient, flavorID string) string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted, thanks!

- Rename "disabled" flag to "show-disabled" for clarity
- Modify flag alias from "dis" to "sd"
- Invert flag logic to explicitly show disabled flavors when flag is set
- Update usage description to clarify default behavior
- Delete unnecessary FlavorURL function from flavors/urls.go
- Simplify package by removing unused URL generation method
- Add new PriceDisplayStatus "error" to handle price-related errors
- Replace generic 'any' type with decimal.Decimal for price fields
- Improve type safety and precision for flavor pricing information
- Rename "show-disabled" flag to "exclude-disabled"
- Change flag alias from "sd" to "ed"
- Invert flag logic to exclude disabled flavors by default
- Update usage description to clarify new behavior
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.

3 participants