@@ -74,6 +74,7 @@ var _ = Describe("CloudProfileConfig validation", func() {
7474
7575 Context ("floating pools constraints" , func () {
7676 It ("should forbid unsupported pools" , func () {
77+ //nolint:staticcheck // SA1019: needed for migration purposes
7778 cloudProfileConfig .Constraints .FloatingPools = []stackitv1alpha1.FloatingPool {
7879 {
7980 Name : "" ,
@@ -97,6 +98,7 @@ var _ = Describe("CloudProfileConfig validation", func() {
9798 })
9899
99100 It ("should forbid duplicates regions and domains in pools" , func () {
101+ //nolint:staticcheck // SA1019: needed for migration purposes
100102 cloudProfileConfig .Constraints .FloatingPools = []stackitv1alpha1.FloatingPool {
101103 {
102104 Name : "foo" ,
@@ -149,9 +151,10 @@ var _ = Describe("CloudProfileConfig validation", func() {
149151
150152 Context ("keystone url validation" , func () {
151153 It ("should forbid keystone urls with missing keys" , func () {
154+ //nolint:staticcheck // SA1019: needed for migration purposes
152155 cloudProfileConfig .KeyStoneURL = ""
156+ //nolint:staticcheck // SA1019: needed for migration purposes
153157 cloudProfileConfig .KeyStoneURLs = []stackitv1alpha1.KeyStoneURL {{}}
154-
155158 errorList := ValidateCloudProfileConfig (cloudProfileConfig , machineImages , fldPath )
156159
157160 Expect (errorList ).To (ConsistOf (PointTo (MatchFields (IgnoreExtras , Fields {
@@ -164,7 +167,9 @@ var _ = Describe("CloudProfileConfig validation", func() {
164167 })
165168
166169 It ("should forbid duplicate regions for keystone urls" , func () {
170+ //nolint:staticcheck // SA1019: needed for migration purposes
167171 cloudProfileConfig .KeyStoneURL = ""
172+ //nolint:staticcheck // SA1019: needed for migration purposes
168173 cloudProfileConfig .KeyStoneURLs = []stackitv1alpha1.KeyStoneURL {
169174 {
170175 Region : "foo" ,
@@ -186,8 +191,8 @@ var _ = Describe("CloudProfileConfig validation", func() {
186191 })
187192
188193 It ("should forbid invalid keystone CA Certs" , func () {
194+ //nolint:staticcheck // SA1019: needed for migration purposes
189195 cloudProfileConfig .KeyStoneCACert = ptr .To ("foo" )
190-
191196 errorList := ValidateCloudProfileConfig (cloudProfileConfig , machineImages , fldPath )
192197 Expect (errorList ).To (ConsistOf (PointTo (MatchFields (IgnoreExtras , Fields {
193198 "Type" : Equal (field .ErrorTypeInvalid ),
@@ -211,8 +216,8 @@ var _ = Describe("CloudProfileConfig validation", func() {
211216
212217 Context ("dhcp domain validation" , func () {
213218 It ("should forbid not specifying a value when the key is present" , func () {
219+ //nolint:staticcheck // SA1019: needed for migration purposes
214220 cloudProfileConfig .DHCPDomain = ptr .To ("" )
215-
216221 errorList := ValidateCloudProfileConfig (cloudProfileConfig , machineImages , fldPath )
217222
218223 Expect (errorList ).To (ConsistOf (PointTo (MatchFields (IgnoreExtras , Fields {
@@ -393,6 +398,7 @@ var _ = Describe("CloudProfileConfig validation", func() {
393398
394399 Context ("server group policy validation" , func () {
395400 It ("should forbid empty server group policy" , func () {
401+ //nolint:staticcheck // SA1019: needed for migration purposes
396402 cloudProfileConfig .ServerGroupPolicies = []string {
397403 "affinity" ,
398404 "" ,
0 commit comments