Skip to content

Commit a8a6e96

Browse files
committed
Fixed * in containerPolicy.ContainerName
Signed-off-by: Omer Aplatony <[email protected]>
1 parent e6f487c commit a8a6e96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vertical-pod-autoscaler/deploy/vpa-v1-crd-gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ spec:
325325
Name of the container or DefaultContainerResourcePolicy, in which
326326
case the policy is used by the containers that don't have their own
327327
policy specified.
328-
pattern: ^[a-zA-Z0-9-_]+$
328+
pattern: (^[a-zA-Z0-9-_]+$)|(^\*$)
329329
type: string
330330
x-kubernetes-validations:
331331
- message: ContainerName cannot be empty

vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ type ContainerResourcePolicy struct {
196196
// Name of the container or DefaultContainerResourcePolicy, in which
197197
// case the policy is used by the containers that don't have their own
198198
// policy specified.
199-
// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9-_]+$`
199+
// +kubebuilder:validation:Pattern=`(^[a-zA-Z0-9-_]+$)|(^\*$)`
200200
// +kubebuilder:validation:XValidation:rule="size(self) > 0",message="ContainerName cannot be empty"
201201
ContainerName string `json:"containerName,omitempty" protobuf:"bytes,1,opt,name=containerName"`
202202
// Whether autoscaler is enabled for the container. The default is "Auto".

0 commit comments

Comments
 (0)