Skip to content

Commit b20e9e0

Browse files
committed
smooth bump
1 parent dd692d5 commit b20e9e0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

api/v3/atom_types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,6 @@ func GetBlobEndpoint() string {
263263
return blobEndpoint
264264
}
265265

266-
//nolint:revive
267-
func (r *Atom) GetBaseUrl() string {
268-
return r.Spec.Service.BaseURL.String()
269-
}
270-
271266
func (r *Atom) GetDownloadLinks() (downloadLinks []DownloadLink) {
272267
for _, datasetFeed := range r.Spec.Service.DatasetFeeds {
273268
for _, entry := range datasetFeed.Entries {

api/v3/atom_validation.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ func (atom *Atom) ValidateUpdate(c client.Client, atomOld *Atom) ([]string, erro
4141
var allErrs field.ErrorList
4242
smoothoperatorvalidation.ValidateLabelsOnUpdate(atomOld.Labels, atom.Labels, &allErrs)
4343

44-
smoothoperatorvalidation.CheckBaseUrlImmutability(atomOld, atom, &allErrs)
44+
smoothoperatorvalidation.CheckUrlImmutability(
45+
atomOld.Spec.Service.BaseURL,
46+
atom.Spec.Service.BaseURL,
47+
&allErrs,
48+
field.NewPath("spec").Child("service").Child("baseUrl"),
49+
)
4550

4651
ValidateAtom(c, atom, &warnings, &allErrs)
4752

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/onsi/ginkgo/v2 v2.22.1
1212
github.com/onsi/gomega v1.36.2
1313
github.com/pdok/atom-generator v0.6.3
14-
github.com/pdok/smooth-operator v0.1.0
14+
github.com/pdok/smooth-operator v0.1.1
1515
github.com/peterbourgon/ff v1.7.1
1616
github.com/pkg/errors v0.9.1
1717
github.com/stretchr/testify v1.10.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR
152152
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
153153
github.com/pdok/atom-generator v0.6.3 h1:wg491zQAokf6ePr1HcfVpF3mhMG2WroFPFpu14cX6Y0=
154154
github.com/pdok/atom-generator v0.6.3/go.mod h1:IlPwti5ocXDTjB4xmz0ZpHCOW/suuW5gQMfjfwPX6uM=
155-
github.com/pdok/smooth-operator v0.1.0 h1:i1uZa3Niuh6ljl4UTGcC48sC01H3CaWHiIfK7pQTix8=
156-
github.com/pdok/smooth-operator v0.1.0/go.mod h1:przwM7mBGmNPqabyhImKVZ15WL4zbqLqH4ExbuWKhWE=
155+
github.com/pdok/smooth-operator v0.1.1 h1:rmsup4HmzJsxt4ZT9GWfj498dKLRfDhyuILeEkjju/A=
156+
github.com/pdok/smooth-operator v0.1.1/go.mod h1:przwM7mBGmNPqabyhImKVZ15WL4zbqLqH4ExbuWKhWE=
157157
github.com/pelletier/go-toml v1.6.0/go.mod h1:5N711Q9dKgbdkxHL+MEfF31hpT7l0S0s/t2kKREewys=
158158
github.com/peterbourgon/ff v1.7.1 h1:xt1lxTG+Nr2+tFtysY7abFgPoH3Lug8CwYJMOmJRXhk=
159159
github.com/peterbourgon/ff v1.7.1/go.mod h1:fYI5YA+3RDqQRExmFbHnBjEeWzh9TrS8rnRpEq7XIg0=

0 commit comments

Comments
 (0)