Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ spec:
resourceGroupID:
description: resourceGroupID is the ID of the resource group for the cluster.
type: string
pattern: ^rg-[0-9A-Za-z]+$
pattern: ^(rg-[0-9A-Za-z]+)?$
resourceTags:
description: resourceTags is a list of additional tags to apply to Alibaba Cloud resources created for the cluster.
type: array
Expand Down
2 changes: 1 addition & 1 deletion config/v1/types_infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ type AlibabaCloudPlatformStatus struct {
// +required
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 "".

// +optional
ResourceGroupID string `json:"resourceGroupID,omitempty"`
// resourceTags is a list of additional tags to apply to Alibaba Cloud resources created for the cluster.
Expand Down