Commit Graph

11 Commits

Author SHA1 Message Date
Scott Nichols 8dc3f910f5
Delete ./test/testgenclient after presubmit is finished. (#1121)
* An oversight left the gen test client around and it is causing issues with other automation that did not gen the test client because of deps changes.

* new better way to test codegen
2020-02-24 09:13:08 -08:00
Scott Nichols 72f3cd2bbc
[Genreconciler] Fix group names when client groups differ than their directory name. (#1097)
* looking at annotations for group overrides.

* checkpoint.

* checkpoint

* I think it is correct.

* ok

* trim down the files.

* simulate tekton

* working test out of checkin

* remove test client

* update docs

* and test.

* lint

* it ok

* update codegen
2020-02-18 17:14:59 -08:00
chaodaiG 178f4d5456 Use knative.dev/test-infra (#552) 2019-07-31 14:20:43 -07:00
Matt Moore 4c630bb1bb Create a library for Reconciler dependency injection. (#423)
This creates a base library that enables us to leverage the dependency
graph to convey injection dependencies.  Our controllers will start
to get their informers off of a `context.Context` via `fooinformers.Get(ctx)`.

By simply linking `fooinformers` to access the informer in this way, we trigger
a cascade of `init`-time registrations for the informer, and its transitive
dependencies (e.g. shared informer factory, client).

The `ctx` is infused with these informers in `package main` by linking the
appropriate reconcilers (transitively registering everything) and then calling
`sharedmain.Main()` (from `github.com/knative/pkg/injection/sharedmain`).
2019-06-05 07:37:38 -07:00
Adriano Cunha d3a9e54be7 Update test-infra (#224)
* Update test-infra

Bring in the latest features and fixes.

Bonus: use default build, unit and integration test runners.

* Update github.com/rogpeppe/go-internal to v1.0.1-alpha.6

This is needed to include the LICENSE file.
The are no changes in the packages used, so this update is safe.
2019-01-16 12:10:33 -08:00
Markus Thömmes 8cb682996f Fix license check for presubmit tests. (#217)
* Fix license check for presubmit tests (should fail).

* Bump dependency on go-internal to include a LICENSE file.

* Taking check_licenses call out of update-deps.sh.
2019-01-14 06:52:30 -08:00
Matt Moore 5c809f170b Add logic to check the licenses of our common package (#135)
* Add logic to check the licenses of our common packages.

* Update test-infra.

* Fix the test-infra vendor
2018-10-25 17:37:31 -07:00
Vincent Demeester 8e471c3d74 Use `/usr/bin/env bash` instead of `/bin/bash` (#107)
Some systems may not have `/bin/bash` (NixOS for example)… Using
`/usr/bin/env bash` has the benefit of looking for whatever the
default version of the program is in your current environment.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2018-10-02 00:02:23 -07:00
Adriano Cunha 4be5c07977 Vendor the test-infra scripts (#52)
* shared scripts from test-infra live in //vendor/github.com/knative/test-infra/scripts;
* update `update-deps.sh` to keep only the scripts folder;
* all bash scripts were updated to use the vendored scripts;

Part of knative/test-infra#30.
2018-08-23 21:30:59 -07:00
Scott Andrews a088fee622 Add Istio client from knative/serving (#35)
* Add Istio client from knative/serving

- Add Istio types in 'apis/istio/v1alpha3'
- Update codegen scripts
- Generate client in 'client'
- Add @tcnghia as owner for 'apis/istio'

Fixes #1

* nix linguring serving package dep

* cleanup vendor cache

* Mark /client as generated

* Fix verify-codegen script

* Run verify-codegen.sh via presubmit-tests.sh

* Remove Gatewaies -> Gateway hack

Looks like we don't need it anymore
2018-08-03 16:14:10 -07:00
Adriano Cunha 16665d8163 Initial set of files for //test (#18)
* Initial set of files for //test

Currently there are no tests, but this will enable finishing setup Prow.

* Add build and unit tests

* Update README with instruction on how to run the unit tests
2018-07-26 16:46:35 -07:00