CI: build and upload node operator

This commit is contained in:
Malte Poll 2022-08-08 15:50:37 +02:00 committed by Malte Poll
parent 5871c49390
commit 1df2a20a36
26 changed files with 275 additions and 92 deletions

View file

@ -1,4 +1,3 @@
package controllers
import (

View file

@ -1,3 +1,6 @@
//go:build integration
// +build integration
package controllers
import (

View file

@ -1,4 +1,3 @@
package controllers
import (

View file

@ -1,3 +1,6 @@
//go:build integration
// +build integration
package controllers
import (

View file

@ -1,4 +1,3 @@
package controllers
import (

View file

@ -1,3 +1,6 @@
//go:build integration
// +build integration
package controllers
import (

View file

@ -1,4 +1,3 @@
package controllers
import (

View file

@ -1,3 +1,6 @@
//go:build integration
// +build integration
package controllers
import (
@ -74,6 +77,13 @@ var _ = Describe("ScalingGroup controller", func() {
image, _ := fakes.scalingGroupUpdater.GetScalingGroupImage(ctx, "group-id")
return image
}, timeout, interval).Should(Equal("image-1"))
Eventually(func() string {
err := k8sClient.Get(ctx, scalingGroupLookupKey, createdScalingGroup)
if err != nil {
return ""
}
return createdScalingGroup.Status.ImageReference
}, timeout, interval).Should(Equal("image-1"))
Consistently(func() (string, error) {
err := k8sClient.Get(ctx, scalingGroupLookupKey, createdScalingGroup)
if err != nil {

View file

@ -1,3 +1,5 @@
//go:build integration
// +build integration
package controllers