Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ linters:
disable-all: true

enable:
- depguard
- errcheck
- gci
- gocritic
- gofumpt
- gomodguard
- gosec
- gosimple
- govet
Expand All @@ -20,6 +20,23 @@ linters:
- unused

linters-settings:
depguard:
rules:
# cockroachdb errors is the most complete error library. It automatically
# adds stack traces and has a very pleasant %v formatting.
errors:
deny:
- pkg: "^errors$"
desc: 'use "github.com/cockroachdb/errors"'
- pkg: "^github.com/pkg/errors"
desc: 'use "github.com/cockroachdb/errors"'
chart-versions:
deny:
- pkg: "^github.com/redpanda-data/redpanda-operator/charts/redpanda$"
desc: 'use "github.com/redpanda-data/redpanda-operator/charts/redpanda/v5"'
- pkg: "^github.com/redpanda-data/redpanda-operator/charts$"
desc: 'import specific charts, the overarching charts module is now deprecated'

gci:
sections:
- standard
Expand All @@ -31,15 +48,6 @@ linters-settings:
no-inline-comments: false
no-prefix-comments: false

gomodguard:
blocked:
modules:
- "github.com/redpanda-data/redpanda-operator/charts/redpanda":
reason: "The redpanda chart must be imported from a versioned module"
recommendations:
- github.com/redpanda-data/redpanda-operator/charts/redpanda/v5


gosec:
excludes:
- G115 # integer overflows aren't super likely to be a problem for us and we're really just at the mercy of the APIs we use.
Expand Down Expand Up @@ -98,4 +106,5 @@ issues:
# We're not aiming to be secure in our tests.
- linters:
- gosec
- wrapcheck
path: '(.+)_test\.go'
2 changes: 1 addition & 1 deletion charts/redpanda/chart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"
"time"

"github.com/pkg/errors"
"github.com/cockroachdb/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zapcore"
Expand Down
23 changes: 19 additions & 4 deletions charts/redpanda/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import (
"crypto/tls"
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
"net"
"net/http"
"slices"
"strings"
"time"

"github.com/cockroachdb/errors"
"github.com/redpanda-data/common-go/rpadmin"
"github.com/twmb/franz-go/pkg/kgo"
"github.com/twmb/franz-go/pkg/sasl"
Expand Down Expand Up @@ -90,7 +90,12 @@ func AdminClient(dot *helmette.Dot, dialer DialContextFunc) (*rpadmin.AdminAPI,

hosts := redpanda.ServerList(values.Statefulset.Replicas, prefix, name, domain, values.Listeners.Admin.Port)

return rpadmin.NewAdminAPIWithDialer(hosts, auth, tlsConfig, dialer)
client, err := rpadmin.NewAdminAPIWithDialer(hosts, auth, tlsConfig, dialer)
if err != nil {
return nil, errors.WithStack(err)
}

return client, nil
}

// SchemaRegistryClient creates a client to talk to a Redpanda cluster admin API based on its helm
Expand Down Expand Up @@ -150,7 +155,12 @@ func SchemaRegistryClient(dot *helmette.Dot, dialer DialContextFunc, opts ...sr.

// finally, override any calculated client opts with whatever was
// passed in
return sr.NewClient(append(copts, opts...)...)
client, err := sr.NewClient(append(copts, opts...)...)
if err != nil {
return nil, errors.WithStack(err)
}

return client, nil
}

// KafkaClient creates a client to talk to a Redpanda cluster based on its helm
Expand Down Expand Up @@ -189,7 +199,12 @@ func KafkaClient(dot *helmette.Dot, dialer DialContextFunc, opts ...kgo.Opt) (*k
opts = append(opts, saslOpt(username, password, mechanism))
}

return kgo.NewClient(opts...)
client, err := kgo.NewClient(opts...)
if err != nil {
return nil, errors.WithStack(err)
}

return client, nil
}

func authFromDot(dot *helmette.Dot) (username string, password string, mechanism string, err error) {
Expand Down
2 changes: 1 addition & 1 deletion charts/redpanda/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/cockroachdb/errors v1.11.3
github.com/invopop/jsonschema v0.12.0
github.com/json-iterator/go v1.1.12
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.76.2
github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/redpanda-data/common-go/rpadmin v0.1.13-0.20250109154132-12ac78a58f95
Expand Down Expand Up @@ -146,6 +145,7 @@ require (
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.20.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion harpoon/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/redpanda-data/redpanda-operator/harpoon
go 1.23.2

require (
github.com/cockroachdb/errors v1.11.3
github.com/cucumber/godog v0.14.1
github.com/cucumber/messages/go/v21 v21.0.1
github.com/olekukonko/tablewriter v0.0.5
Expand Down Expand Up @@ -31,7 +32,6 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/cockroachdb/errors v1.11.3 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/containerd/containerd v1.7.18 // indirect
Expand Down
2 changes: 1 addition & 1 deletion harpoon/tablegenerator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ package tablegenerator
import (
"bufio"
"bytes"
"errors"
"flag"
"fmt"
"os"
"strings"

"github.com/cockroachdb/errors"
"github.com/cucumber/godog"
"github.com/olekukonko/tablewriter"

Expand Down
2 changes: 1 addition & 1 deletion licenseupdater/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ package main

import (
"bytes"
"errors"
"fmt"
"os"
"sort"
"strings"
"sync"

"github.com/cockroachdb/errors"
"github.com/sergi/go-diff/diffmatchpatch"
)

Expand Down
2 changes: 1 addition & 1 deletion licenseupdater/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ package main

import (
"bytes"
"errors"
"fmt"
"os"
"path"
Expand All @@ -20,6 +19,7 @@ import (
"strings"
"text/template"

"github.com/cockroachdb/errors"
"gopkg.in/yaml.v3"
)

Expand Down
10 changes: 9 additions & 1 deletion licenseupdater/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ module github.com/redpanda-data/redpanda-operator/licenseupdater
go 1.23.2

require (
github.com/cockroachdb/errors v1.11.3
github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
golang.org/x/sync v0.9.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/stretchr/testify v1.10.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
)
52 changes: 51 additions & 1 deletion licenseupdater/go.sum
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I=
github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8=
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps=
github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand All @@ -26,8 +45,39 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=
golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
Expand Down
2 changes: 1 addition & 1 deletion operator/api/redpanda/v1alpha2/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ package v1alpha2

import (
"context"
"errors"
"fmt"
"strings"

"github.com/cockroachdb/errors"
"github.com/redpanda-data/console/backend/pkg/config"
"github.com/twmb/franz-go/pkg/kadm"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion operator/api/redpanda/v1alpha2/user_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package v1alpha2

import (
"context"
"errors"
"slices"

"github.com/cockroachdb/errors"
"github.com/twmb/franz-go/pkg/kmsg"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion operator/cmd/configurator/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package configurator
import (
"context"
"encoding/json"
"errors"
"fmt"
"log"
"os"
Expand All @@ -25,6 +24,7 @@ import (
"strconv"
"strings"

"github.com/cockroachdb/errors"
"github.com/moby/sys/mountinfo"
"github.com/redpanda-data/redpanda/src/go/rpk/pkg/config"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion operator/cmd/ready/ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package ready

import (
"context"
"errors"
"fmt"

"github.com/cockroachdb/errors"
"github.com/spf13/cobra"
ctrl "sigs.k8s.io/controller-runtime"

Expand Down
2 changes: 1 addition & 1 deletion operator/cmd/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ package run
import (
"context"
"crypto/tls"
"errors"
"fmt"
"os"
"path/filepath"
"slices"
"strings"
"time"

"github.com/cockroachdb/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
helmkube "helm.sh/helm/v3/pkg/kube"
Expand Down
2 changes: 1 addition & 1 deletion operator/cmd/sidecar/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package sidecar

import (
"context"
"errors"
"time"

"github.com/cockroachdb/errors"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
Expand Down
Loading
Loading