Skip to content

Commit 657fa2f

Browse files
fix go.mod and pin docker/distribution
Signed-off-by: varshaprasad96 <[email protected]>
1 parent cb08356 commit 657fa2f

File tree

4 files changed

+4
-35
lines changed

4 files changed

+4
-35
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export IMAGE_VERSION = v1.9.0
99
export SIMPLE_VERSION = $(shell (test "$(shell git describe)" = "$(shell git describe --abbrev=0)" && echo $(shell git describe)) || echo $(shell git describe --abbrev=0)+git)
1010
export GIT_VERSION = $(shell git describe --dirty --tags --always)
1111
export GIT_COMMIT = $(shell git rev-parse HEAD)
12-
export K8S_VERSION = 1.21.2
12+
export K8S_VERSION = 1.20.2
1313

1414
# Build settings
1515
export TOOLS_DIR = tools/bin

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ require (
3737
k8s.io/cli-runtime v0.21.0
3838
k8s.io/client-go v0.21.2
3939
k8s.io/kubectl v0.21.0
40-
rsc.io/letsencrypt v0.0.3 // indirect
4140
sigs.k8s.io/controller-runtime v0.9.2
4241
sigs.k8s.io/controller-tools v0.6.0
4342
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20210707171043-359e8aa70c2b
@@ -50,6 +49,8 @@ replace (
5049
// from an init function in containerd. This replace can be removed when
5150
// one of our direct dependencies begins using containerd v1.4.0+
5251
github.com/containerd/containerd => github.com/containerd/containerd v1.4.3
52+
// latest tag resolves to a very old version. this is only used for spinning up local test registries
53+
github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d
5354
github.com/mattn/go-sqlite3 => github.com/mattn/go-sqlite3 v1.10.0
5455
golang.org/x/text => golang.org/x/text v0.3.3 // Required to fix CVE-2020-14040
5556
)

go.sum

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,8 @@ github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyG
244244
github.com/docker/cli v0.0.0-20200130152716-5d0cf8839492/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
245245
github.com/docker/cli v20.10.5+incompatible h1:bjflayQbWg+xOkF2WPEAOi4Y7zWhR7ptoPhV/VqLVDE=
246246
github.com/docker/cli v20.10.5+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
247+
github.com/docker/distribution v0.0.0-20191216044856-a8371794149d h1:jC8tT/S0OGx2cswpeUTn4gOIea8P08lD3VFQT0cOZ50=
247248
github.com/docker/distribution v0.0.0-20191216044856-a8371794149d/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY=
248-
github.com/docker/distribution v2.7.0+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
249-
github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
250-
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
251249
github.com/docker/docker v0.7.3-0.20190103212154-2b7e084dc98b/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
252250
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
253251
github.com/docker/docker v0.7.3-0.20190817195342-4760db040282/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
@@ -1609,8 +1607,6 @@ k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
16091607
k8s.io/utils v0.0.0-20210527160623-6fdb442a123b h1:MSqsVQ3pZvPGTqCjptfimO2WjG7A9un2zcpiHkA6M/s=
16101608
k8s.io/utils v0.0.0-20210527160623-6fdb442a123b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
16111609
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
1612-
rsc.io/letsencrypt v0.0.3 h1:H7xDfhkaFFSYEJlKeq38RwX2jYcnTeHuDQyT+mMNMwM=
1613-
rsc.io/letsencrypt v0.0.3/go.mod h1:buyQKZ6IXrRnB7TdkHP0RyEybLx18HHyOSoTyoOLqNY=
16141610
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
16151611
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
16161612
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0=

internal/ansible/controller/reconcile_test.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -409,34 +409,6 @@ func TestReconcile(t *testing.T) {
409409
Namespace: "default",
410410
},
411411
},
412-
ExpectedObject: &unstructured.Unstructured{
413-
Object: map[string]interface{}{
414-
"metadata": map[string]interface{}{
415-
"name": "reconcile",
416-
"namespace": "default",
417-
},
418-
"apiVersion": "operator-sdk/v1beta1",
419-
"kind": "Testing",
420-
"spec": map[string]interface{}{},
421-
"status": map[string]interface{}{
422-
"conditions": []interface{}{
423-
map[string]interface{}{
424-
"status": "True",
425-
"type": "Running",
426-
"ansibleResult": map[string]interface{}{
427-
"changed": int64(0),
428-
"failures": int64(0),
429-
"ok": int64(0),
430-
"skipped": int64(0),
431-
"completion": eventTime.Format("2006-01-02T15:04:05.99999999"),
432-
},
433-
"message": "Awaiting next reconciliation",
434-
"reason": "Successful",
435-
},
436-
},
437-
},
438-
},
439-
},
440412
},
441413
{
442414
Name: "No status event",

0 commit comments

Comments
 (0)