upgrade to latest dependencies (#474)

bumping knative.dev/pkg ea766de...980a337:
  > 980a337 Fix revive related linting issues (# 2131)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-05-26 09:17:28 -07:00 committed by GitHub
parent 0c47112c29
commit e08a858772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 29 additions and 16 deletions

2
go.mod
View File

@ -20,5 +20,5 @@ require (
k8s.io/code-generator v0.19.7
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
knative.dev/hack v0.0.0-20210428122153-93ad9129c268
knative.dev/pkg v0.0.0-20210525142738-ea766de6bdd1
knative.dev/pkg v0.0.0-20210526081028-980a33719a10
)

4
go.sum
View File

@ -1116,8 +1116,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-20210428122153-93ad9129c268 h1:lBIj9Epd9UQ55NEaHzAdY/UZbuaegCdGPKVC2+Z68Q0=
knative.dev/hack v0.0.0-20210428122153-93ad9129c268/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
knative.dev/pkg v0.0.0-20210525142738-ea766de6bdd1 h1:i+oPTPkGg32aZgrbfMzVC+kejeYAxd5Bgz1iIBe4Z6U=
knative.dev/pkg v0.0.0-20210525142738-ea766de6bdd1/go.mod h1:nOD9XjvR+UuO1fHZSaOhfTWDCIz06crh1qQppgZDzR0=
knative.dev/pkg v0.0.0-20210526081028-980a33719a10 h1:4tC0TcIx4EU6PCcRwdIiCWuKI3vpOgpQUrF1nUeF1t8=
knative.dev/pkg v0.0.0-20210526081028-980a33719a10/go.mod h1:nOD9XjvR+UuO1fHZSaOhfTWDCIz06crh1qQppgZDzR0=
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=

View File

@ -27,7 +27,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Conditions is the interface for a Resource that implements the getter and
// ConditionsAccessor is the interface for a Resource that implements the getter and
// setter for accessing a Condition collection.
// +k8s:deepcopy-gen=true
type ConditionsAccessor interface {

View File

@ -52,7 +52,7 @@ const (
ConditionSeverityInfo ConditionSeverity = "Info"
)
// Conditions defines a readiness condition for a Knative resource.
// Condition defines a readiness condition for a Knative resource.
// See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
// +k8s:deepcopy-gen=true
type Condition struct {

View File

@ -33,7 +33,7 @@ func CheckDeprecated(ctx context.Context, obj interface{}) *FieldError {
return CheckDeprecatedUpdate(ctx, obj, nil)
}
// CheckDeprecated checks whether the provided named deprecated fields
// CheckDeprecatedUpdate checks whether the provided named deprecated fields
// are set in a context where deprecation is disallowed.
// This is a json shallow check. We will recursively check inlined structs.
func CheckDeprecatedUpdate(ctx context.Context, obj, original interface{}) *FieldError {

View File

@ -21,6 +21,7 @@ import (
)
const (
// GroupName is the name of the API group.
GroupName = ducktypes.GroupName
// AddressableDuckVersionLabel is the label we use to declare

View File

@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
}
var (
// SchemeBuilder builds a scheme with the types known to the package.
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
// AddToScheme adds the types known to this package to an existing schema.
AddToScheme = SchemeBuilder.AddToScheme
)
// Adds the list of known types to Scheme.

View File

@ -44,7 +44,7 @@ func (w *ManualWatcher) Watch(name string, o ...Observer) {
w.observers[name] = append(w.observers[name], o...)
}
// Watch implements Watcher
// ForEach implements Watcher
func (w *ManualWatcher) ForEach(f func(string, []Observer) error) error {
for k, v := range w.observers {
if err := f(k, v); err != nil {

View File

@ -477,7 +477,8 @@ func (c *Impl) RunContext(ctx context.Context, threadiness int) error {
return nil
}
// DEPRECATED use RunContext instead.
// Run runs the controller.
// DEPRECATED: Use RunContext instead.
func (c *Impl) Run(threadiness int, stopCh <-chan struct{}) error {
// Create a context that is cancelled when the stopCh is called.
ctx, cancel := context.WithCancel(context.Background())

View File

@ -48,7 +48,9 @@ var (
// - characters are printable US-ASCII
reconcilerTagKey = tag.MustNewKey("reconciler")
successTagKey = tag.MustNewKey("success")
NamespaceTagKey = tag.MustNewKey(metricskey.LabelNamespaceName)
// NamespaceTagKey marks metrics with a namespace.
NamespaceTagKey = tag.MustNewKey(metricskey.LabelNamespaceName)
)
func init() {

View File

@ -62,7 +62,7 @@ func NewEvent(eventtype, reason, messageFmt string, args ...interface{}) Event {
// ReconcilerEvent wraps the fields required for recorders to create a
// kubernetes recorder Event.
type ReconcilerEvent struct { //nolint:golint // for backcompat.
type ReconcilerEvent struct { //nolint:revive // for backcompat.
EventType string
Reason string
Format string

View File

@ -31,9 +31,13 @@ import (
const failedGenerationBump = "NewObservedGenFailure"
const (
DoReconcileKind = "ReconcileKind"
DoFinalizeKind = "FinalizeKind"
DoObserveKind = "ObserveKind"
// DoReconcileKind is the function name for reconciling the resource (as a leader).
DoReconcileKind = "ReconcileKind"
// DoFinalizeKind is the function name for finalizing the resource (as a leader).
DoFinalizeKind = "FinalizeKind"
// DoObserveKind is the function name for observing the resource (as a non leader).
DoObserveKind = "ObserveKind"
// DoObserveFinalizeKind is the function name for observing finalization of the resource (as a non leader).
DoObserveFinalizeKind = "ObserveFinalizeKind"
)

View File

@ -22,7 +22,10 @@ import (
)
const (
NamespaceEnvKey = "SYSTEM_NAMESPACE"
// NamespaceEnvKey is the environment variable that specifies the system namespace.
NamespaceEnvKey = "SYSTEM_NAMESPACE"
// ResourceLabelEnvKey is the environment variable that specifies the system resource
// label.
ResourceLabelEnvKey = "SYSTEM_RESOURCE_LABEL"
)

2
vendor/modules.txt vendored
View File

@ -667,7 +667,7 @@ k8s.io/utils/trace
# knative.dev/hack v0.0.0-20210428122153-93ad9129c268
## explicit
knative.dev/hack
# knative.dev/pkg v0.0.0-20210525142738-ea766de6bdd1
# knative.dev/pkg v0.0.0-20210526081028-980a33719a10
## explicit
knative.dev/pkg/apis
knative.dev/pkg/apis/duck