Bug 2033536: Alibaba infrastructure config: Updating kube validation on optional s…#1088
Conversation
|
@kwoodson: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@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
Requesting review from QA contact: DetailsIn response to this:
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. |
| 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]+)?$` |
There was a problem hiding this comment.
This allows the string to be empty in cases where it gets defaults to "".
|
@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 bug 2033536 has not been moved to the MODIFIED state. DetailsIn response to this:
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. |
|
/Lgtm |
…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
"".