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

[occm] validate flavor name, fallback on flavor id #1364

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

seanschneeweiss
Copy link
Contributor

@seanschneeweiss seanschneeweiss commented Jan 11, 2021

What this PR does / why we need it:
The node.kubernetes.io/instance-type label accepts alphanumeric
characters, '-', '_', and '.' only. If the flavor name contains
invalid characters, the flavor id is used instead.

Which issue this PR fixes(if applicable):
fixes #

Special notes for reviewers:

This addresses the issue mentioned in #1213 (comment).

error syncing 'blue-master-1': Node "blue-master-1" is invalid: metadata.labels: Invalid value: "Small HD 4GB": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), requeuing

Release note:

NONE

Sean Schneeweiss sean.schneeweiss@daimler.com, Daimler TSS GmbH, legal info/Impressum

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 11, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @seanschneeweiss. Thanks for your PR.

I'm waiting for a kubernetes 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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 11, 2021
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 11, 2021
@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 11, 2021

Build succeeded.

@jichenjc
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 12, 2021
@jichenjc
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 12, 2021
@seanschneeweiss
Copy link
Contributor Author

/retest

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Jan 12, 2021

Build succeeded.

@seanschneeweiss
Copy link
Contributor Author

/test cloud-provider-openstack-acceptance-test-csi-manila

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build failed.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 8, 2021

Build succeeded.

@lingxiankong
Copy link
Contributor

/test cloud-provider-openstack-acceptance-test-lb-octavia

@k8s-ci-robot
Copy link
Contributor

@lingxiankong: The specified target(s) for /test were not found.
The following commands are available to trigger jobs:

  • /test pull-cloud-provider-openstack-check
  • /test pull-cloud-provider-openstack-test

Use /test all to run all jobs.

In response to this:

/test cloud-provider-openstack-acceptance-test-lb-octavia

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.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 9, 2021

Build failed.

@lingxiankong
Copy link
Contributor

/test cloud-provider-openstack-acceptance-test-lb-octavia

@k8s-ci-robot
Copy link
Contributor

@lingxiankong: The specified target(s) for /test were not found.
The following commands are available to trigger jobs:

  • /test pull-cloud-provider-openstack-check
  • /test pull-cloud-provider-openstack-test

Use /test all to run all jobs.

In response to this:

/test cloud-provider-openstack-acceptance-test-lb-octavia

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.

@lingxiankong
Copy link
Contributor

/override openlab/cloud-provider-openstack-acceptance-test-csi-manila

@k8s-ci-robot
Copy link
Contributor

@lingxiankong: Overrode contexts on behalf of lingxiankong: openlab/cloud-provider-openstack-acceptance-test-csi-manila

In response to this:

/override openlab/cloud-provider-openstack-acceptance-test-csi-manila

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.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 9, 2021

Build succeeded.

@ramineni
Copy link
Contributor

ramineni commented Feb 9, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 9, 2021
@ramineni
Copy link
Contributor

ramineni commented Feb 9, 2021

@seanschneeweiss lets backport this to 1.20 as well

@seanschneeweiss
Copy link
Contributor Author

@seanschneeweiss lets backport this to 1.20 as well

Please see #1402

@lingxiankong
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lingxiankong

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 Feb 10, 2021
@k8s-ci-robot k8s-ci-robot merged commit 7642d71 into kubernetes:master Feb 10, 2021
powellchristoph pushed a commit to powellchristoph/cloud-provider-openstack that referenced this pull request Jan 19, 2022
The node.kubernetes.io/instance-type label accepts alphanumeric
characters, '-', '_', and '.' only. If the flavor name contains
invalid characters, the flavor id is used instead.

Signed-off-by: Sean Schneeweiss <sean.schneeweiss@daimler.com>
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants