Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Commit fd52463

Browse files
committed
Use v1beta1 of the API from image reflector
This bumps the version of the image reflector types to v1beta1. This doesn't technically make a difference for the minute, since the Kubernetes API server would convert between versions, but is tidier. Signed-off-by: Michael Bridgen <[email protected]>
1 parent 3629cc7 commit fd52463

8 files changed

+9
-9
lines changed

controllers/imageupdateautomation_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import (
5353
"sigs.k8s.io/controller-runtime/pkg/reconcile"
5454
"sigs.k8s.io/controller-runtime/pkg/source"
5555

56-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
56+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
5757
"github.com/fluxcd/pkg/apis/meta"
5858
"github.com/fluxcd/pkg/runtime/events"
5959
"github.com/fluxcd/pkg/runtime/metrics"

controllers/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"
3131
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3232

33-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
33+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
3434
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
3535

3636
imagev1 "github.com/fluxcd/image-automation-controller/api/v1beta1"

controllers/update_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import (
4848
ctrl "sigs.k8s.io/controller-runtime"
4949
"sigs.k8s.io/controller-runtime/pkg/client"
5050

51-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
51+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
5252
"github.com/fluxcd/pkg/apis/meta"
5353
"github.com/fluxcd/pkg/gittestserver"
5454
"github.com/fluxcd/pkg/ssh"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/cyphar/filepath-securejoin v0.2.2
1010
github.com/fluxcd/image-automation-controller/api v0.13.0
1111
// If you bump this, change REFLECTOR_VER in the Makefile to match
12-
github.com/fluxcd/image-reflector-controller/api v0.10.0
12+
github.com/fluxcd/image-reflector-controller/api v0.11.0
1313
github.com/fluxcd/pkg/apis/meta v0.10.0
1414
github.com/fluxcd/pkg/gittestserver v0.3.0
1515
github.com/fluxcd/pkg/runtime v0.12.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZM
299299
github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc=
300300
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
301301
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
302-
github.com/fluxcd/image-reflector-controller/api v0.10.0 h1:uZsf5X0Djko2yJMNdKn516nKCiSBFecE8c+O66lrgyI=
303-
github.com/fluxcd/image-reflector-controller/api v0.10.0/go.mod h1:X4qZ11pfA5w1ajbkYbWmQ3hBW3gzCyIjhU87AvV6o2A=
302+
github.com/fluxcd/image-reflector-controller/api v0.11.0 h1:Pz9GuUQvmJO5nJPEtGBRQnIHvcY+ITqI4LdSiW11toE=
303+
github.com/fluxcd/image-reflector-controller/api v0.11.0/go.mod h1:X4qZ11pfA5w1ajbkYbWmQ3hBW3gzCyIjhU87AvV6o2A=
304304
github.com/fluxcd/pkg/apis/meta v0.10.0 h1:N7wVGHC1cyPdT87hrDC7UwCwRwnZdQM46PBSLjG2rlE=
305305
github.com/fluxcd/pkg/apis/meta v0.10.0/go.mod h1:CW9X9ijMTpNe7BwnokiUOrLl/h13miwVr/3abEQLbKE=
306306
github.com/fluxcd/pkg/gittestserver v0.3.0 h1:6aa30mybecBwBWaJ2IEk7pQzefWnjWjxkTSrHMHawvg=

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
ctrl "sigs.k8s.io/controller-runtime"
2929
ctrlmetrics "sigs.k8s.io/controller-runtime/pkg/metrics"
3030

31-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
31+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
3232
"github.com/fluxcd/pkg/runtime/client"
3333
"github.com/fluxcd/pkg/runtime/events"
3434
"github.com/fluxcd/pkg/runtime/leaderelection"

pkg/update/setters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"sigs.k8s.io/kustomize/kyaml/setters2"
3232
"sigs.k8s.io/kustomize/kyaml/yaml"
3333

34-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
34+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
3535
)
3636

3737
const (

pkg/update/update_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"sigs.k8s.io/kustomize/kyaml/yaml"
3131

3232
"github.com/fluxcd/image-automation-controller/pkg/test"
33-
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha2"
33+
imagev1_reflect "github.com/fluxcd/image-reflector-controller/api/v1beta1"
3434
)
3535

3636
func TestUpdate(t *testing.T) {

0 commit comments

Comments
 (0)