File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ require (
1313 k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7
1414 knative.dev/hack v0.0.0-20210806075220-815cd312d65c
1515 knative.dev/hack/schema v0.0.0-20210806075220-815cd312d65c
16- knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3
16+ knative.dev/pkg v0.0.0-20210919202233-5ae482141474
1717)
Original file line number Diff line number Diff line change @@ -978,8 +978,8 @@ knative.dev/hack v0.0.0-20210806075220-815cd312d65c h1:nOXoDWAAItwr4o0dp3nHr6skg
978978knative.dev/hack v0.0.0-20210806075220-815cd312d65c /go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI =
979979knative.dev/hack/schema v0.0.0-20210806075220-815cd312d65c h1:YqFCmijfROO3rzIO8u1EMKZXBwAFJMmIoTXcr6wdBy8 =
980980knative.dev/hack/schema v0.0.0-20210806075220-815cd312d65c /go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0 =
981- knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3 h1:45c2VIOBQP6jpRj+pEyciuzTmBwbZpv8jBfBEf/B5oM =
982- knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3 /go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8 =
981+ knative.dev/pkg v0.0.0-20210919202233-5ae482141474 h1:anlUJXoxJvI2U1Fd69mV9uv6d7XvhAgb0zP+FoChP7k =
982+ knative.dev/pkg v0.0.0-20210919202233-5ae482141474 /go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8 =
983983pgregory.net/rapid v0.3.3 /go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU =
984984rsc.io/binaryregexp v0.2.0 /go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8 =
985985rsc.io/quote/v3 v3.1.0 /go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0 =
Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ func (s *Source) Validate(ctx context.Context) *apis.FieldError {
180180}
181181
182182func (s * SourceSpec ) Validate (ctx context.Context ) * apis.FieldError {
183+ if s .CloudEventOverrides == nil {
184+ return nil
185+ }
183186 return s .CloudEventOverrides .Validate (ctx ).ViaField ("ceOverrides" )
184187}
185188
Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ func CheckMinimumVersion(versioner discovery.ServerVersionInterface) error {
6666
6767 // If no specific pre-release requirement is set, we default to "-0" to always allow
6868 // pre-release versions of the same Major.Minor.Patch version.
69+ // Set IsNum to true otherwise currentVersion.LT() below always returns true.
6970 if len (minimumVersion .Pre ) == 0 {
70- minimumVersion .Pre = []semver.PRVersion {{VersionNum : 0 }}
71+ minimumVersion .Pre = []semver.PRVersion {{VersionNum : 0 , IsNum : true }}
7172 }
7273
7374 // Return error if the current version is less than the minimum version required.
Original file line number Diff line number Diff line change @@ -703,7 +703,7 @@ knative.dev/hack/schema/commands
703703knative.dev/hack/schema/docs
704704knative.dev/hack/schema/registry
705705knative.dev/hack/schema/schema
706- # knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3
706+ # knative.dev/pkg v0.0.0-20210919202233-5ae482141474
707707## explicit
708708knative.dev/pkg/apis
709709knative.dev/pkg/apis/duck
You can’t perform that action at this time.
0 commit comments