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

Adding quotes for datacenter field #3382

Merged
merged 4 commits into from
Sep 21, 2022

Conversation

adonskoy
Copy link
Contributor

Issue #, if available: #3381

Description of changes:
Added quotes to the spec.template.spec.datacenter value in VSphereMachineTemplate to ensure that the value type is always a string.

Testing (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot
Copy link
Collaborator

Hi @adonskoy. Thanks for your PR.

I'm waiting for a aws member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eks-distro-bot eks-distro-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 17, 2022
Copy link
Contributor

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

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

/ok-to-test

@TerryHowe
Copy link
Contributor

uugn, I could see one or two test failures, but way too many dependencies on that.

@eks-distro-bot eks-distro-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 19, 2022
@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #3382 (894e646) into main (fe8ada3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3382   +/-   ##
=======================================
  Coverage   64.85%   64.85%           
=======================================
  Files         352      352           
  Lines       28395    28395           
=======================================
  Hits        18416    18416           
  Misses       8666     8666           
  Partials     1313     1313           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@vivek-koppuru vivek-koppuru left a comment

Choose a reason for hiding this comment

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

This is a great find, thank you for sharing this! Now my question is, should we do this for the other string values in this file as well if they can support only integers as well?

@adonskoy
Copy link
Contributor Author

This is a great find, thank you for sharing this! Now my question is, should we do this for the other string values in this file as well if they can support only integers as well?

As far as I can see, other values cannot be integers in this file, because they will either initially be a string, or are the result of concatenating other strings (for example, datastore)

@vivek-koppuru vivek-koppuru self-assigned this Sep 21, 2022
@vivek-koppuru
Copy link
Member

This is a great find, thank you for sharing this! Now my question is, should we do this for the other string values in this file as well if they can support only integers as well?

As far as I can see, other values cannot be integers in this file, because they will either initially be a string, or are the result of concatenating other strings (for example, datastore)

Good point, I think these changes are good then!

Copy link
Member

@vivek-koppuru vivek-koppuru left a comment

Choose a reason for hiding this comment

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

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vivek-koppuru

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

@vivek-koppuru
Copy link
Member

@adonskoy Can you rebase the changes in your branch and add this change to the expected_results_minimal_autoscaling_md.yaml file in the vsphere package as well? Seems to be a new test file

@vivek-koppuru
Copy link
Member

/cherry-pick release-0.11

@eks-distro-pr-bot
Copy link
Contributor

@vivek-koppuru: once the present PR merges, I will cherry-pick it on top of release-0.11 in a new PR and assign it to you.

In response to this:

/cherry-pick release-0.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eks-distro-bot eks-distro-bot merged commit 42f4fcf into aws:main Sep 21, 2022
@eks-distro-pr-bot
Copy link
Contributor

@vivek-koppuru: new pull request created: #3406

In response to this:

/cherry-pick release-0.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@vivek-koppuru
Copy link
Member

@adonskoy Thank you so much for your contribution!

@adonskoy adonskoy deleted the fix-vsphere-datacenter-value-type branch September 21, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants