Commit Graph

20 Commits

Author SHA1 Message Date
Scott Nichols 826303ca06
use new hack repo (#1858) 2020-10-27 15:38:33 -07:00
Scott Nichols 49103e3170
leverage the go_update_deps method from test-infra (#1792)
* leverage the go_update_deps method from test-infra

* update test-infra
2020-10-09 13:35:21 -07:00
Nghia Tran 0a8314b444
Back to tracking master branch of floating deps (#1468) 2020-07-07 12:03:44 -07:00
Nghia Tran 2c1a029eb9
Pin knative.dev/test-infra to release-0.16 (#1458) 2020-06-30 10:00:34 -07:00
Markus Thömmes 9d7eee1b0b
[POST-RELEASE] Track master branches again. (#1354) 2020-05-26 11:41:50 -07:00
Markus Thömmes 14eb3ae3a5
[RELEASE] Pin test-infra branch to 'release-0.15'. (#1346) 2020-05-19 08:57:57 -07:00
Chi Zhang 90fc61bae7
Switch to Go modules (#1179)
* test out go modules

* chmod +x *.sh

* revert some changes

* update-deps

* try fixing

* chmod +x

* update

* update test-infra for testing

* test

* test

* update

* no -mod=vendor

* update
2020-04-28 12:43:51 -07:00
Matt Moore 73701f1aa5
Add an `--upgrade` flag to `./hack/update-dev.sh` (#1136)
This flag upgrades the list of dependencies that we choose to track at HEAD.
2020-03-02 12:31:52 -08:00
coryrc d0787646f1
Allow passing arguments to dep in update-deps.sh (#1021) 2020-01-31 11:20:29 -08:00
Slavomir Kaslev 37e855f81e Update istio.io/client-go version to 1.4.1 (#930)
Update istio.io/client-go and drop our patch for it since it has been upstreamed.
2019-12-13 06:49:54 -08:00
Slavomir Kaslev ddf3968b65 Migrate pkg to istio.io/client-go apis (#882)
* Add istio api packages from istio.io/api and istio.io/client-go

* Codegen istio client for apis from istio.io/client-go

* Remove our istio apis
2019-11-26 11:41:21 -08:00
chaodaiG 178f4d5456 Use knative.dev/test-infra (#552) 2019-07-31 14:20:43 -07:00
Matt Moore 139b81e637 Make a small adjustment to hack/update-deps.sh (#465)
This form should be more hospitable to running things to auto-update `knative/pkg` and `knative/test-infra`.

I canaried this change in `knative/sample-controller`, and was able to produce: https://github.com/knative/sample-controller/pull/11
2019-06-14 22:06:44 -07:00
Adriano Cunha 678bb6612d Remove OWNERS under /vendor (#432)
These are unnecessary.
2019-06-04 07:44:41 -07:00
jonjohnsonjr cd278f2d33 Bump k8s deps: 1.11.3 -> 1.12.6 (#310)
* Bump k8s deps: 1.11.3 -> 1.12.6

* ./hack/update-deps.sh

* ./hack/update-codegen.sh
2019-03-14 13:48:45 -07: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
Matt Moore 3473880674 Informers / Listers for Duck Types. (#86)
This starts to sketch common libraries for instantiating informers/listers for a particular GroupVersionResource as one of our duck types.

You can instantiate a duck.InformerFactory like so:
```go
        dynaClient, err := dynamic.NewForConfig(cfg)
        if err != nil {
                logger.Fatalf("Error building dynamic clientset: %v", err)
        }

	// Cache as the outermost layer so we only register the EventHandler once.
        dif := &duck.CachedInformerFactory{
                Delegate: &duck.EnqueueInformerFactory{
			Delegate: &duck.TypedInformerFactory{
        	                Client:       dynaClient,
                	        Type:         &duckv1alpha1.Target{},
                        	ResyncPeriod: 30 * time.Second,
	                        StopChannel:  stopCh,
			},
			EventHandler: cache.ResourceEventHandlerFuncs{
				AddFunc: func(obj interface{}) {
					// Enqueue, obj is: *duckerv1alpha1.Target
				},
				UpdateFunc: func(old, new interface{}) {
					// Enqueue, old and new are: *duckerv1alpha1.Target
				},
			},
                },
        }
```

Then, as you come across new GroupVersionResources that you want to handle:
```go
        informer, lister, err := dif.Get(gvr)
        if err != nil {
               logger.Fatalf("Error starting shared index informer: %v", err)
        }
```

With the `duck.TypedInformerFactory` the objects will be returned as the provided `Type:`, so in this example, you could safely write:
```go
        elt, err := lister.ByNamespace(ns).Get(name)
        if err != nil { ... }

        target := elt.(*duckv1alpha1.Target)
        // Stuff involving target.
```
2018-09-24 20:10:20 -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
Matt Moore f8e84c0d02
Copy `pkg/configmap` over from `knative/serving`. (#11) 2018-07-25 14:56:29 -07:00