Skip to content

Commit 7fae6cf

Browse files
fix test
1 parent d1f5b2c commit 7fae6cf

7 files changed

Lines changed: 1 addition & 19 deletions

api/compute/v1alpha1/function_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,11 @@ type FunctionSpec struct {
9191

9292
WindowConfig *WindowConfig `json:"windowConfig,omitempty"`
9393

94-
// +kubebuilder:validation:Required
9594
Messaging `json:",inline"`
9695
// PulsarPackageService is used for package download when specified.
9796
// If empty, the package download falls back to Messaging.Pulsar.
9897
PulsarPackageService *PulsarMessaging `json:"pulsarPackageService,omitempty"`
9998

100-
// +kubebuilder:validation:Required
10199
Runtime `json:",inline"`
102100

103101
// Image is the container image used to run function pods.

api/compute/v1alpha1/sink_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ type SinkSpec struct {
8484

8585
Pod PodPolicy `json:"pod,omitempty"`
8686

87-
// +kubebuilder:validation:Required
8887
Messaging `json:",inline"`
8988
// PulsarPackageService is used for package download when specified.
9089
// If empty, the package download falls back to Messaging.Pulsar.
9190
PulsarPackageService *PulsarMessaging `json:"pulsarPackageService,omitempty"`
92-
// +kubebuilder:validation:Required
93-
Runtime `json:",inline"`
91+
Runtime `json:",inline"`
9492

9593
// Image is the container image used to run sink pods.
9694
// default is streamnative/pulsar-functions-java-runner

api/compute/v1alpha1/source_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ type SourceSpec struct {
8080
ForwardSourceMessageProperty *bool `json:"forwardSourceMessageProperty,omitempty"`
8181
Pod PodPolicy `json:"pod,omitempty"`
8282

83-
// +kubebuilder:validation:Required
8483
Messaging `json:",inline"`
8584
// PulsarPackageService is used for package download when specified.
8685
// If empty, the package download falls back to Messaging.Pulsar.
8786
PulsarPackageService *PulsarMessaging `json:"pulsarPackageService,omitempty"`
8887

89-
// +kubebuilder:validation:Required
9088
Runtime `json:",inline"`
9189

9290
// Image is the container image used to run source pods.

config/crd/bases/compute.functionmesh.io_functionmeshes.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4110,8 +4110,6 @@ spec:
41104110
required:
41114111
- actualWindowFunctionClassName
41124112
type: object
4113-
required:
4114-
- ""
41154113
type: object
41164114
type: array
41174115
sinks:
@@ -7871,8 +7869,6 @@ spec:
78717869
- name
78727870
type: object
78737871
type: array
7874-
required:
7875-
- ""
78767872
type: object
78777873
type: array
78787874
sources:
@@ -11613,8 +11609,6 @@ spec:
1161311609
- name
1161411610
type: object
1161511611
type: array
11616-
required:
11617-
- ""
1161811612
type: object
1161911613
type: array
1162011614
type: object

config/crd/bases/compute.functionmesh.io_functions.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,8 +4107,6 @@ spec:
41074107
required:
41084108
- actualWindowFunctionClassName
41094109
type: object
4110-
required:
4111-
- ""
41124110
type: object
41134111
status:
41144112
properties:

config/crd/bases/compute.functionmesh.io_sinks.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,8 +3780,6 @@ spec:
37803780
- name
37813781
type: object
37823782
type: array
3783-
required:
3784-
- ""
37853783
type: object
37863784
status:
37873785
properties:

config/crd/bases/compute.functionmesh.io_sources.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,8 +3761,6 @@ spec:
37613761
- name
37623762
type: object
37633763
type: array
3764-
required:
3765-
- ""
37663764
type: object
37673765
status:
37683766
properties:

0 commit comments

Comments
 (0)