Skip to content

Commit b49ebc2

Browse files
authored
validateUpdate returns warning on k8s version change (#433) (#434)
* validateUpdate returns warning on k8s version change * changed test to allow version update with same image
1 parent 0e69346 commit b49ebc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exp/api/v1beta2/ocimanagedmachinepool_webhook_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func TestOCIManagedMachinePool_ValidateUpdate(t *testing.T) {
255255
expectErr: false,
256256
},
257257
{
258-
name: "should not allow version update with same image",
258+
name: "should allow version update with same image",
259259
m: &OCIManagedMachinePool{
260260
ObjectMeta: metav1.ObjectMeta{
261261
Name: "abcdefghijklmno",
@@ -278,7 +278,7 @@ func TestOCIManagedMachinePool_ValidateUpdate(t *testing.T) {
278278
},
279279
},
280280
},
281-
expectErr: true,
281+
expectErr: false,
282282
},
283283
}
284284
for _, test := range tests {

0 commit comments

Comments
 (0)