Commit Graph

14 Commits

Author SHA1 Message Date
zhaojizhuang c2674e6d84
Add markready method for image (#457)
* add markready method for image

* fix UT and change method name

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>
Update pkg/apis/caching/v1alpha1/image_lifecycle.go

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>
Update pkg/apis/caching/v1alpha1/image_lifecycle.go

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>
fix ut
2021-04-21 08:57:37 -07:00
zhaojizhuang a6535156c8
change status to duckv1.status, add reconciler framework (#454)
* add reconciler for imagecache

* change status to duckv1.status

* fix UT

* fix static check

* fix isReady

* add UT case for generation
2021-04-19 09:00:01 -07:00
Victor Agababov 7646d730f2
Check multiple entries in the validation. (#367)
This is a list and we check all of them to be conformant, but return only first error,
which is a departure from what we do in most of the serving.
2020-10-21 16:41:32 -07:00
Victor Agababov 128ba664d1
Fix the testing formatting funcs (#344) 2020-09-29 12:15:29 -07:00
Victor Agababov 0ebbd5354e
Fix the govet error (#318)
as can be seen here: https://github.com/knative/caching/pull/317/checks?check_run_id=1026849591
2020-08-25 09:41:48 -07:00
Scott Nichols 1114dba63e update boilerplate to use 2020 (#175) 2020-01-07 16:17:52 -08:00
Matt Moore e93f1a11b7 Update our dependency on K8s libs to 1.15.3 (#101)
With a minimum K8s version of 1.14 (starting in 0.10), 1.15.3 puts us in the center of the +/-1 version window of support.

/hold
2019-09-18 13:49:54 -07:00
chaodaiG 96cb0bf1f9 Migrate caching to use the knative.dev/caching import path (#36)
* Migrate to knative.dev

* manual replace

* run update-codegen
2019-06-26 20:43:13 -07:00
Matt Moore aa9bd3961c Migrate to knative.dev/pkg (#35)
These changes done via:
```
sed -i 's@"github.com/knative/pkg@"knative.dev/pkg@g' $(find -name '*.go' | grep -v vendor | xargs grep github.com/knative/pkg | cut -d':' -f 1)
```

`Gopkg.toml`:
 - github.com/knative/pkg -> knative.dev/pkg
  - release-0.7 -> master

`./hack/update-codegen.sh`:
 - github.com/knative/pkg -> knative.dev/pkg

```
./hack/update-deps.sh
./hack/update-codegen.sh
```
2019-06-26 13:56:06 -07:00
Matt Moore 3fc06fd3c9 This adds context.Context to the interfaces used by the pkg webhook. (#23)
See also: https://github.com/knative/pkg/pull/332
2019-03-21 10:52:47 -07:00
Matt Moore a9dfa18660 Allow creators to produce / consume a slice of LocalObjectReference for pull secrets. (#12)
PodSpec has this as a slice, and if we wanted to start creating these references more automatically for e.g. Deployment it isn't immediately obvious which secret is used for which image (certainly without reading the secrets).  This changes it to a more pass-through model for simplicity.

Fixes: https://github.com/knative/caching/issues/9
2018-09-17 12:42:17 -07:00
Matt Moore bba06b0586
Update knative/pkg to get kmeta.OwnerRefable. (#10) 2018-09-14 10:43:02 -07:00
Matt Moore f0d7bb6095
Add the initial caching type definitions. (#5)
* Add the initial caching type definitions.

This is largely carried over from https://github.com/knative/serving/pull/1972

* Incorporate feedback from @evankanderson

* Add the CRD for the type definition.
2018-09-07 09:56:33 -07:00
Matt Moore 932173e3e2 Bootstrap knative/caching.
This adds all of the elements needed to bootstrap the knative/caching repo.

I've tried to limit this to largely boilerplate elements so that it can more easily be recycled as we create other repos.
2018-09-01 20:50:01 +00:00