-
Notifications
You must be signed in to change notification settings - Fork 515
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
AWS EBS: add default EBS volume types for provisioners #1931
Conversation
@michaelmdresser @nikovacevic if I can get a review please |
I don't see any OWNERS for in pkg/cloud/aws directory so not sure who should I ask for review. @michaelmdresser @mbolt35 @Sean-Holcomb @nik-kc if you can have a look at this change please? |
Closing this PR, since open source contributions don't seem to be welcomed. A review would have been appreciated if the change isn't worthy enough (apologies for using a bit strong words). |
Hello @junaid-ali, |
Thanks @cliffcolvin, reopened the PR. |
Re creating an issue, I should have created an issue. It's been a while I haven't looked at kubecost, but this debug message should be fixed for the known AWS k8s storage classes: https://github.com/opencost/opencost/blob/develop/pkg/cloud/aws/provider.go#L730 |
@junaid-ali we are going to work to get this in 1.107 |
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.
I suspect this is fine, but I don't have an environment at-hand where this would be quick and simple to test. As I read it, at least, it should be backwards compatible with old behavior, but adds support where intended.
The unit tests are nice to have. I'd support merging and testing for regressions, but not worrying too much about setting up a specific env to test.
ea9344f
to
4d41405
Compare
Hi @junaid-ali. We've approved this PR, and I've rebased it so that it's up-to-date atop the |
In some cases, the `type` parameter might be missing and defaults to a type determined by the CSI controller. For example, if we don't specify the type `ebs.csi.aws.com` provisioner, the default is `gp3`. Ref: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/parameters.md Signed-off-by: Junaid Ali <junaidali.yahya@gmail.com>
Signed-off-by: Junaid Ali <junaidali.yahya@gmail.com>
4d41405
to
8c77fcf
Compare
@nikovacevic done, my original commit had wrong author name |
Fantastic, thank you @junaid-ali |
What does this PR change?
In some cases, the
type
parameter might be missing in aStorageClass
definition and defaults to a type determined by the CSI controller. For example, if we don't specify the type for EBS CSI controller, the default isgp3
. Ref: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/parameters.mdDoes this PR relate to any other PRs?
How will this PR impact users?
Does this PR address any GitHub or Zendesk issues?
How was this PR tested?
unit tests
Does this PR require changes to documentation?
Have you labeled this PR and its corresponding Issue as "next release" if it should be part of the next Opencost release? If not, why not?