Skip to content

Commit 12bff48

Browse files
committed
reset unintentional kubebuilder change that led to CI failure
1 parent d5f2c44 commit 12bff48

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

api/v2/apisixroute_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ type ApisixRouteHTTPBackend struct {
190190
// The default is `endpoints`.
191191
ResolveGranularity string `json:"resolveGranularity,omitempty" yaml:"resolveGranularity,omitempty"`
192192
// Weight specifies the relative traffic weight for this backend.
193+
// +kubebuilder:validation:Optional
193194
Weight *int `json:"weight" yaml:"weight"`
194195
// Subset specifies a named subset of the target Service.
195196
// The subset must be pre-defined in the corresponding ApisixUpstream resource.

api/v2/apisixupstream_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ type LoadBalancer struct {
174174
// Can be `roundrobin`, `chash`, `ewma`, or `least_conn`.
175175
// +kubebuilder:validation:Enum=roundrobin;chash;ewma;least_conn;
176176
// +kubebuilder:default=roundrobin
177-
// +kubebuilder:validation:Required
178177
Type string `json:"type" yaml:"type"`
179178
// HashOn specified the type of field used for hashing, required when type is `chash`.
180179
// Default is `vars`. Can be `vars`, `header`, `cookie`, `consumer`, or `vars_combinations`.

0 commit comments

Comments
 (0)