Skip to content

Commit ab4a963

Browse files
committed
Change package name and fixup imports and paths
1 parent 48aac78 commit ab4a963

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Image URL to use all building/pushing image targets
3-
IMG ?= squaremo/image-automation-controller
3+
IMG ?= fluxcd/image-automation-controller
44
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
55
CRD_OPTIONS ?= "crd:trivialVersions=true"
66

@@ -32,7 +32,7 @@ ${TEST_CRDS}/gitrepositories.yaml:
3232

3333
${TEST_CRDS}/imagepolicies.yaml:
3434
mkdir -p ${TEST_CRDS}
35-
curl -s https://raw.githubusercontent.com/squaremo/image-reflector-controller/main/config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml \
35+
curl -s https://raw.githubusercontent.com/fluxcd/image-reflector-controller/main/config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml \
3636
-o ${TEST_CRDS}/imagepolicies.yaml
3737

3838
# Run tests

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
domain: toolkit.fluxcd.io
2-
repo: github.com/squaremo/image-automation-controller
2+
repo: github.com/fluxcd/image-automation-controller
33
resources:
44
- group: image
55
kind: ImageUpdateAutomation

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
This is part of the image update automation, as outlined in
44

55
- [this post](https://squaremo.dev/posts/gitops-controllers/); and refined in
6-
- [this design](https://github.com/squaremo/image-reflector-controller/pull/5)
6+
- [this design](https://github.com/fluxcd/image-reflector-controller/pull/5)
77

88
Its sibling repository
9-
[image-reflector-controller](https://github.com/squaremo/image-reflector-controller)
9+
[image-reflector-controller](https://github.com/fluxcd/image-reflector-controller)
1010
implements the image metadata reflection controller (scans container
1111
image repositories and reflects the metadata in Kubernetes resources);
1212
this repository implements the image update automation controller.
@@ -40,13 +40,13 @@ This controller relies on the image reflector controller. A working
4040
configuration for the latter can be applied straight from the GitHub
4141
repository (NB `-k`):
4242

43-
kubectl apply -k github.com/squaremo/image-reflector-controller/config/default
43+
kubectl apply -k github.com/fluxcd/image-reflector-controller/config/default
4444

4545
### Installing the automation controller
4646

4747
You can apply a working configuration directly from GitHub:
4848

49-
kubectl apply -k github.com/squaremo/image-automation-controller/config/default
49+
kubectl apply -k github.com/fluxcd/image-automation-controller/config/default
5050

5151
or, in a clone of this repository,
5252

@@ -221,7 +221,7 @@ given by the image policy. Here's an example, [from my own
221221
repository][squaremo-auto-commit].
222222

223223
[source-controller]: https://github.com/fluxcd/source-controller
224-
[image-reflector]: https://github.com/squaremo/image-reflector-controller
224+
[image-reflector]: https://github.com/fluxcd/image-reflector-controller
225225
[gotk]: https://toolkit.fluxcd.io
226226
[cuttlefacts-app-repo]: https://github.com/cuttlefacts/cuttlefacts-app
227227
[github-fingerprints]: https://docs.github.com/en/github/authenticating-to-github/githubs-ssh-key-fingerprints

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
images:
66
- name: controller
7-
newName: squaremo/image-automation-controller
7+
newName: fluxcd/image-automation-controller

config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
- /manager
2020
args:
2121
- --enable-leader-election
22-
image: squaremo/image-automation-controller
22+
image: fluxcd/image-automation-controller
2323
name: manager
2424
resources:
2525
limits:

controllers/imageupdateautomation_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ import (
4242
"sigs.k8s.io/controller-runtime/pkg/reconcile"
4343
"sigs.k8s.io/controller-runtime/pkg/source"
4444

45+
imagev1alpha1 "github.com/fluxcd/image-automation-controller/api/v1alpha1"
46+
"github.com/fluxcd/image-automation-controller/pkg/update"
47+
imagev1alpha1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha1"
4548
sourcev1alpha1 "github.com/fluxcd/source-controller/api/v1alpha1"
4649
"github.com/fluxcd/source-controller/pkg/git"
47-
imagev1alpha1 "github.com/squaremo/image-automation-controller/api/v1alpha1"
48-
"github.com/squaremo/image-automation-controller/pkg/update"
49-
imagev1alpha1_reflect "github.com/squaremo/image-reflector-controller/api/v1alpha1"
5050
)
5151

5252
const defaultInterval = 2 * time.Minute

controllers/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import (
3131
logf "sigs.k8s.io/controller-runtime/pkg/log"
3232
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3333

34+
imagev1alpha1 "github.com/fluxcd/image-automation-controller/api/v1alpha1"
35+
imagev1alpha1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha1"
3436
sourcev1alpha1 "github.com/fluxcd/source-controller/api/v1alpha1"
35-
imagev1alpha1 "github.com/squaremo/image-automation-controller/api/v1alpha1"
36-
imagev1alpha1_reflect "github.com/squaremo/image-reflector-controller/api/v1alpha1"
3737
// +kubebuilder:scaffold:imports
3838
)
3939

controllers/update_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ import (
3737
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3838
"k8s.io/apimachinery/pkg/types"
3939

40+
imagev1alpha1 "github.com/fluxcd/image-automation-controller/api/v1alpha1"
41+
"github.com/fluxcd/image-automation-controller/pkg/test"
42+
imagev1alpha1_reflect "github.com/fluxcd/image-reflector-controller/api/v1alpha1"
4043
sourcev1alpha1 "github.com/fluxcd/source-controller/api/v1alpha1"
41-
imagev1alpha1 "github.com/squaremo/image-automation-controller/api/v1alpha1"
42-
"github.com/squaremo/image-automation-controller/pkg/test"
43-
imagev1alpha1_reflect "github.com/squaremo/image-reflector-controller/api/v1alpha1"
4444
)
4545

4646
const timeout = 10 * time.Second

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
module github.com/squaremo/image-automation-controller
1+
module github.com/fluxcd/image-automation-controller
22

33
go 1.14
44

55
require (
6+
github.com/fluxcd/image-reflector-controller v0.0.0-20200810165546-c2265d9b49b9
67
// If you bump this, change TOOLKIT_VERSION in the Makefile to match
78
github.com/fluxcd/source-controller v0.0.7
89
github.com/go-git/go-billy/v5 v5.0.0
@@ -11,7 +12,6 @@ require (
1112
github.com/google/go-containerregistry v0.1.1
1213
github.com/onsi/ginkgo v1.12.1
1314
github.com/onsi/gomega v1.10.1
14-
github.com/squaremo/image-reflector-controller v0.0.0-20200806084621-949f5815f1b0
1515
k8s.io/api v0.18.6
1616
k8s.io/apimachinery v0.18.6
1717
k8s.io/client-go v0.18.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwo
293293
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
294294
github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
295295
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
296+
github.com/fluxcd/image-reflector-controller v0.0.0-20200810165546-c2265d9b49b9 h1:puMXg9dmh/i3rpAuzVq5R5L84pZMA/KUNZbPxi0JdWw=
297+
github.com/fluxcd/image-reflector-controller v0.0.0-20200810165546-c2265d9b49b9/go.mod h1:v2cJ+q7zRlj1VhYjtE1i3cGAFkSTz21/tKidWIIGUtU=
296298
github.com/fluxcd/pkg v0.0.3 h1:yhjtpGtD9LxFo8JtwTuUxJyFcX2wSSb0TPptIEpGSmA=
297299
github.com/fluxcd/pkg v0.0.3/go.mod h1:rtlppQU+9DNikyDZptLdOeTf+wBvQQiQQ/J113FPoeU=
298300
github.com/fluxcd/source-controller v0.0.7 h1:D17Le7bc+53deRA3EMJc9eB/uU2HqvkMCwILE5HRhPk=
@@ -913,8 +915,6 @@ github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DM
913915
github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
914916
github.com/spf13/viper v1.6.1/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfDi5k=
915917
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
916-
github.com/squaremo/image-reflector-controller v0.0.0-20200806084621-949f5815f1b0 h1:kTCPWxu6N63aG44NFTj0hdLAdUUAZ3NqUbvwqs6/Bms=
917-
github.com/squaremo/image-reflector-controller v0.0.0-20200806084621-949f5815f1b0/go.mod h1:mSk+RSF2BxrxHCq58gVnPbPYo+paz6O8GaeclrUoTzs=
918918
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
919919
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
920920
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=

0 commit comments

Comments
 (0)