Skip to content

Commit d92ba23

Browse files
committed
Lint
Signed-off-by: joshvanl <[email protected]>
1 parent 8d4c77e commit d92ba23

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

bindings/kubernetes/kubernetes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ func (k *kubernetesInput) Read(ctx context.Context, handler bindings.Handler) er
119119
fields.Everything(),
120120
)
121121
resultChan := make(chan EventResponse)
122+
// TODO:
123+
// cache.NewInformer is deprecated: Use NewInformerWithOptions instead.
124+
//nolint:staticcheck
122125
_, controller := cache.NewInformer(
123126
watchlist,
124127
&corev1.Event{},

configuration/postgres/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func NewPostgresConfigurationStore(logger logger.Logger) configuration.Store {
9191
// NewPostgresConfigurationStoreWithOptions creates a new instance of PostgreSQL store with options.
9292
func NewPostgresConfigurationStoreWithOptions(logger logger.Logger, opts Options) configuration.Store {
9393
return &ConfigurationStore{
94-
logger: logger,
94+
logger: logger,
9595
enableAzureAD: !opts.NoAzureAD,
9696
enableAWSIAM: !opts.NoAWSIAM,
9797
}

middleware/http/opa/middleware.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ import (
2929
"strings"
3030
"time"
3131

32+
// TODO:
33+
// "github.com/open-policy-agent/opa/rego" is deprecated: This package is intended
34+
// for older projects transitioning from OPA v0.x and will remain for the lifetime
35+
// of OPA v1.x, but its use is not recommended. For newer features and behaviours,
36+
// such as defaulting to the Rego v1 syntax, use the corresponding components in
37+
// the [github.com/open-policy-agent/opa/v1] package instead. See
38+
// https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more
39+
// information.
40+
//nolint:staticcheck
3241
"github.com/open-policy-agent/opa/rego"
3342

3443
"github.com/dapr/components-contrib/common/httputils"

0 commit comments

Comments
 (0)