Skip to content

Commit 05edf54

Browse files
authored
Merge pull request #48 from PDOK/wr/dep-update
bump smooth dep
2 parents 5089843 + f7540d5 commit 05edf54

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

api/v3/atom_validation.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ 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.CheckUrlImmutability(
45-
atomOld.Spec.Service.BaseURL,
46-
atom.Spec.Service.BaseURL,
47-
&allErrs,
48-
field.NewPath("spec").Child("service").Child("baseUrl"),
49-
)
44+
if atom.Spec.IngressRouteURLs == nil {
45+
smoothoperatorvalidation.CheckURLImmutability(
46+
atomOld.Spec.Service.BaseURL,
47+
atom.Spec.Service.BaseURL,
48+
&allErrs,
49+
field.NewPath("spec").Child("service").Child("baseUrl"),
50+
)
51+
}
5052

5153
smoothoperatorvalidation.ValidateIngressRouteURLsNotRemoved(atomOld.Spec.IngressRouteURLs, atom.Spec.IngressRouteURLs, &allErrs, nil)
5254

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.4
14-
github.com/pdok/smooth-operator v0.1.2
14+
github.com/pdok/smooth-operator v0.1.3
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.4 h1:UpTTSKskdWLnxTAhSNOlz8dF2tBousD97V03kWzCV2k=
154154
github.com/pdok/atom-generator v0.6.4/go.mod h1:IlPwti5ocXDTjB4xmz0ZpHCOW/suuW5gQMfjfwPX6uM=
155-
github.com/pdok/smooth-operator v0.1.2 h1:ibGRgFjKysu665IUToQhs34hHhptftI+7RBFrGNw4nQ=
156-
github.com/pdok/smooth-operator v0.1.2/go.mod h1:przwM7mBGmNPqabyhImKVZ15WL4zbqLqH4ExbuWKhWE=
155+
github.com/pdok/smooth-operator v0.1.3 h1:Y+JvbFLlyb6pMNFVgAd8G6QsXL0Y6F0srTaROabRnm0=
156+
github.com/pdok/smooth-operator v0.1.3/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)