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

📖 Update Azure spot types to use string instead of float #3063

Merged
merged 1 commit into from
May 26, 2020

Conversation

JoelSpeed
Copy link
Contributor

What this PR does / why we need it:
Update the Spot instances proposal to clarify that the Azure types should use string instead of float as originally noted.
It was noticed during implementation (https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/559/files#r424579944) that floats are not allowed by the controller-tools crd generator tool

Ref: kubernetes-sigs/controller-tools#245

The alternative to this is to use a resource.Quantity which is allowed, but I'm not sure if that adds much benefit over using a string

CC @CecileRobertMichon

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 14, 2020
@k8s-ci-robot k8s-ci-robot requested review from detiber and vincepri May 14, 2020 12:29
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 14, 2020
@@ -214,7 +214,7 @@ when the instance is created:
(Delete is supported for VMs as part of VMSS only).

- BillingProfile (default: -1) : This is a struct containing a single field, `MaxPrice`.
This is a float representation of the maximum price the user wishes to pay for their VM.
This is a string representation of the maximum price the user wishes to pay for their VM.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a small comment about why we're using a string for the record? It might not be obvious to future readers.

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve
/assign @CecileRobertMichon
/milestone v0.3.6

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed, vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 15, 2020
@vincepri vincepri modified the milestones: v0.3.6, v0.3.x May 15, 2020
@JoelSpeed
Copy link
Contributor Author

JoelSpeed commented May 26, 2020

@CecileRobertMichon I've added a link to a comment that I think will be helpful for future readers, do you think that's a good link to use?

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 26, 2020
@k8s-ci-robot k8s-ci-robot merged commit 235e730 into kubernetes-sigs:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants