Skip to content

Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s…#1088

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
kwoodson:fix_field_validation
Dec 17, 2021
Merged

Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s…#1088
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
kwoodson:fix_field_validation

Conversation

@kwoodson
Copy link
Copy Markdown

…tring

When testing recently with the recent optional field the validation has been failing when golang defaults the empty string to "". The fix here is to make the string be optionally "".

Dec 17 17:02:54 citest-4zx6j-bootstrap bootkube.sh[2351]: "cluster-infrastructure-02-config.yml": failed to update status for infrastructures.v1.config.openshift.io/cluster -n : Infrastructure.config.openshift.io "cluster" is invalid: status.platformStatus.alibabaCloud.resourceGroupID: Invalid value: "": status.platformStatus.alibabaCloud.resourceGroupID in body should match '^rg-[0-9A-Za-z]+$'

@openshift-ci openshift-ci Bot requested review from bparees and sttts December 17, 2021 17:42
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 17, 2021

@kwoodson: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Dec 17, 2021

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 17, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, kwoodson

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 17, 2021
@kwoodson kwoodson changed the title Alibaba infrastructure config: Updating kube validation on optional s… Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s… Dec 17, 2021
@openshift-ci openshift-ci Bot added the bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. label Dec 17, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 17, 2021

@kwoodson: This pull request references Bugzilla bug 2033536, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @jianli-wei

Details

In response to this:

Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s…

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.

@openshift-ci openshift-ci Bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Dec 17, 2021
@openshift-ci openshift-ci Bot requested a review from jianli-wei December 17, 2021 22:13
Region string `json:"region"`
// resourceGroupID is the ID of the resource group for the cluster.
// +kubebuilder:validation:Pattern=`^rg-[0-9A-Za-z]+$`
// +kubebuilder:validation:Pattern=`^(rg-[0-9A-Za-z]+)?$`
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This allows the string to be empty in cases where it gets defaults to "".

@openshift-merge-robot openshift-merge-robot merged commit 8779abf into openshift:master Dec 17, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 17, 2021

@kwoodson: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with /bugzilla refresh.

Bugzilla bug 2033536 has not been moved to the MODIFIED state.

Details

In response to this:

Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s…

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.

@jianli-wei
Copy link
Copy Markdown

/Lgtm

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. bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants