mirror of https://github.com/knative/caching.git
upgrade to latest dependencies (#452)
bumping knative.dev/pkg 3a2ae6d...b51994e: > b51994e Fix a few comments in reconciler-gen (# 2090) Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
08a0136e43
commit
bfe63795ed
2
go.mod
2
go.mod
|
@ -18,5 +18,5 @@ require (
|
|||
k8s.io/code-generator v0.19.7
|
||||
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
|
||||
knative.dev/hack v0.0.0-20210325223819-b6ab329907d3
|
||||
knative.dev/pkg v0.0.0-20210409203851-3a2ae6db7097
|
||||
knative.dev/pkg v0.0.0-20210412173742-b51994e3b312
|
||||
)
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1205,8 +1205,8 @@ k8s.io/utils v0.0.0-20200729134348-d5654de09c73 h1:uJmqzgNWG7XyClnU/mLPBWwfKKF1K
|
|||
k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
knative.dev/hack v0.0.0-20210325223819-b6ab329907d3 h1:km0Rrh0T9/wA2pivQm1hqSPVwgNgGCHC2WNn3GakZmE=
|
||||
knative.dev/hack v0.0.0-20210325223819-b6ab329907d3/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
|
||||
knative.dev/pkg v0.0.0-20210409203851-3a2ae6db7097 h1:QgAu9HFo/luVDNQPu5nhNsC0nj9/OsughUe2XYE9NoU=
|
||||
knative.dev/pkg v0.0.0-20210409203851-3a2ae6db7097/go.mod h1:V/yjYpwRpIoUCavOoF8plCw72kF7rMjWPms5v2QqxA4=
|
||||
knative.dev/pkg v0.0.0-20210412173742-b51994e3b312 h1:tE80vxKw9ENrLRe+U9BvLAcJ5UYpDc40r5hFoRFUXh0=
|
||||
knative.dev/pkg v0.0.0-20210412173742-b51994e3b312/go.mod h1:V/yjYpwRpIoUCavOoF8plCw72kF7rMjWPms5v2QqxA4=
|
||||
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
|
|
|
@ -270,13 +270,13 @@ type doReconcile func(ctx {{.contextContext|raw}}, o *{{.type|raw}}) {{.reconcil
|
|||
|
||||
// reconcilerImpl implements controller.Reconciler for {{.type|raw}} resources.
|
||||
type reconcilerImpl struct {
|
||||
// LeaderAwareFuncs is inlined to help us implement {{.reconcilerLeaderAware|raw}}
|
||||
// LeaderAwareFuncs is inlined to help us implement {{.reconcilerLeaderAware|raw}}.
|
||||
{{.reconcilerLeaderAwareFuncs|raw}}
|
||||
|
||||
// Client is used to write back status updates.
|
||||
Client {{.clientsetInterface|raw}}
|
||||
|
||||
// Listers index properties about resources
|
||||
// Listers index properties about resources.
|
||||
Lister {{.resourceLister|raw}}
|
||||
|
||||
// Recorder is an event recorder for recording Event resources to the
|
||||
|
@ -305,7 +305,7 @@ type reconcilerImpl struct {
|
|||
{{end}}
|
||||
}
|
||||
|
||||
// Check that our Reconciler implements controller.Reconciler
|
||||
// Check that our Reconciler implements controller.Reconciler.
|
||||
var _ controller.Reconciler = (*reconcilerImpl)(nil)
|
||||
// Check that our generated Reconciler is always LeaderAware.
|
||||
var _ {{.reconcilerLeaderAware|raw}} = (*reconcilerImpl)(nil)
|
||||
|
|
|
@ -99,28 +99,28 @@ func (g *reconcilerStateGenerator) GenerateType(c *generator.Context, t *types.T
|
|||
var reconcilerStateType = `
|
||||
// state is used to track the state of a reconciler in a single run.
|
||||
type state struct {
|
||||
// Key is the original reconciliation key from the queue.
|
||||
// key is the original reconciliation key from the queue.
|
||||
key string
|
||||
// Namespace is the namespace split from the reconciliation key.
|
||||
// namespace is the namespace split from the reconciliation key.
|
||||
namespace string
|
||||
// Namespace is the name split from the reconciliation key.
|
||||
// name is the name split from the reconciliation key.
|
||||
name string
|
||||
// reconciler is the reconciler.
|
||||
reconciler Interface
|
||||
// rof is the read only interface cast of the reconciler.
|
||||
// roi is the read only interface cast of the reconciler.
|
||||
roi ReadOnlyInterface
|
||||
// IsROI (Read Only Interface) the reconciler only observes reconciliation.
|
||||
// isROI (Read Only Interface) the reconciler only observes reconciliation.
|
||||
isROI bool
|
||||
// rof is the read only finalizer cast of the reconciler.
|
||||
rof ReadOnlyFinalizer
|
||||
// IsROF (Read Only Finalizer) the reconciler only observes finalize.
|
||||
// isROF (Read Only Finalizer) the reconciler only observes finalize.
|
||||
isROF bool
|
||||
// IsLeader the instance of the reconciler is the elected leader.
|
||||
// isLeader the instance of the reconciler is the elected leader.
|
||||
isLeader bool
|
||||
}
|
||||
|
||||
func newState(key string, r *reconcilerImpl) (*state, error) {
|
||||
// Convert the namespace/name string into a distinct namespace and name
|
||||
// Convert the namespace/name string into a distinct namespace and name.
|
||||
namespace, name, err := {{.cacheSplitMetaNamespaceKey|raw}}(key)
|
||||
if err != nil {
|
||||
return nil, {{.fmtErrorf|raw}}("invalid resource key: %s", key)
|
||||
|
|
|
@ -659,7 +659,7 @@ k8s.io/utils/trace
|
|||
# knative.dev/hack v0.0.0-20210325223819-b6ab329907d3
|
||||
## explicit
|
||||
knative.dev/hack
|
||||
# knative.dev/pkg v0.0.0-20210409203851-3a2ae6db7097
|
||||
# knative.dev/pkg v0.0.0-20210412173742-b51994e3b312
|
||||
## explicit
|
||||
knative.dev/pkg/apis
|
||||
knative.dev/pkg/apis/duck
|
||||
|
|
Loading…
Reference in New Issue