Commit Graph

8 Commits

Author SHA1 Message Date
Nahshon Unna Tsameret
93627f4fe8
Stop Using Deprecated Packages (#1548)
* sigs.k8s.io/controller-runtime/pkg/runtime/* packages are deprecated, and were moved to new paths.

Trying to upgrade sigs.k8s.io/controller-runtime to version v0.7.0 in HCO created a conflict because in v0.7.0 the deprecated packages were removed and cannot be used.

This PR replaces the deprecated packages with their new paths.

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

* Run `make deps-update`

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

* fix logger init

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

* fix test loggers

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
2020-12-24 07:08:50 +01:00
Michael Henriksen
75f4fd6f2f
update k8s deps to 18.6 and controller runtime to 0.6.2 (#1330)
* update k8s deps to 1.18.6 and controller runtime to 0.6.2

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* remove building code generators from docker image.  This way the k8s ligray version only has to be updated in go.mod

Do more stuff in the bazel container.  Faster and better interop

Fix unit tests

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* make format

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* remove unnecessary rsync

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* redo code generator dep management

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* builder uses go modules

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-08-07 14:09:52 +02:00
Alexander Wels
889f231300 Use controller library for config controller (#1034)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-09 15:54:25 +01:00
Alexander Wels
40072b631a Report cloning progress in logs and prometheus.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-01 11:09:03 -04:00
Scott Creeley
accb530d20 renaming and moving functional tests and setting up unit tests template framework 2018-05-29 17:37:11 -04:00
Jon Cope
558f2cb77f Additional build tags to test files 2018-04-17 16:39:44 -05:00
Jon Cope
447177a506 Add functional testing for supported compression and archiving (excl
qcow2)

Fixed 'unexpected EOF' when reading test output (use io.Copy instead of ioutil.ReadAll), Test that input and output byte slices contain the same data

Extracted slice vars from loop

Fixed CreateTarXz/Gz funcs with correct calls (currently unimplemented)

Moved datastream tests to separate directory in prep for container work

Distinguish tests with build tags (unit v functional)
Add make recipe to functional test compilation, image build, and run

Improved Makefile output

Converted gz in-mem test to file read test, paremeterized importer Dockerfile to enable use as
test env, added build-args to Makefile for binary specific options.

Added xz test, condenced BeforeEach into It block (looping over BeforeEach causes unwanted behaviours)

Abstracted compression to single function, removed FileExt type (back to
strings), added tar test

Support nested format, add extention to convert function map
create base file with name provided in test table, no constant
added qcow2 conversion (broken: decompressed file is bigger than
original)

Extracted some setup to helper, add .tar.xz test
2018-04-06 18:03:17 -05:00
Shiyang Wang
123b7ac620 add importer test 2018-03-13 14:20:17 +08:00