Skip to content

[release/v2.3.x] move pkg/secrets to operator/pkg/secrets#652

Closed
alenkacz wants to merge 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-641
Closed

[release/v2.3.x] move pkg/secrets to operator/pkg/secrets#652
alenkacz wants to merge 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-641

Conversation

@alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Apr 7, 2025

Backport

This will backport the following commits from main to release/v2.3.x:

Questions ?

Please refer to the Backport tool documentation

github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/redpanda-data/common-go/net v0.1.0
github.com/redpanda-data/common-go/rpadmin v0.1.13-0.20250109154132-12ac78a58f95
github.com/redpanda-data/common-go/secrets v0.1.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please bump to v0.1.3

Suggested change
github.com/redpanda-data/common-go/secrets v0.1.2
github.com/redpanda-data/common-go/secrets v0.1.3

per #651

Copy link
Contributor

@RafalKorepta RafalKorepta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://buildkite.com/redpanda/redpanda-operator/builds/5514#01960ece-c4a3-4046-a000-c0b735dd56bf/195-1102

operator/cmd/configurator/bootstrap.go:11:2: could not import github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration (-: # github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration
--
  | pkg/clusterconfiguration/expander.go:20:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used) (typecheck)
  | "github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration"
  | ^
  | operator/cmd/configurator/bootstrap.go:12:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used (typecheck)
  | pkgsecrets "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets"
  | ^
  | operator/cmd/run/run.go:61:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used (typecheck)
  | pkgsecrets "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets"
  | ^
  | operator/internal/controller/vectorized/cluster_controller.go:461:2: declared and not used: pki (typecheck)
  | pki, err := ar.getPKI()
  | ^
  | operator/internal/controller/vectorized/cluster_controller.go:892:2: declared and not used: pki (typecheck)
  | pki, err := ar.getPKI()
  | ^
  | operator/internal/controller/vectorized/test/console_controller_test.go:320:5: declared and not used: rbacDataVal (typecheck)
  | rbacDataVal = `roleBindings:
  | ^
  | operator/pkg/clusterconfiguration/expander.go:1: : # github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration
  | pkg/clusterconfiguration/expander.go:20:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used (typecheck)
  | // Package clusterconfiguration holds types to track cluster configuration - the CRD declarations need to
  | operator/pkg/resources/configuration/configuration.go:27:2: could not import github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration (-: # github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration
  | pkg/clusterconfiguration/expander.go:20:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used) (typecheck)
  | "github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration"
  | ^
  | operator/pkg/resources/configuration/configuration.go:29:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used (typecheck)
  | pkgsecrets "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets"
  | ^
  | operator/pkg/resources/statefulset.go:41:2: could not import github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration (-: # github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration
  | pkg/clusterconfiguration/expander.go:20:2: "github.com/redpanda-data/redpanda-operator/operator/pkg/secrets" imported as pkgsecrets and not used) (typecheck)
  | "github.com/redpanda-data/redpanda-operator/operator/pkg/clusterconfiguration"
  | ^
  | 10 issues:
  | * typecheck: 10

I think the #625 should be merged first.

@RafalKorepta
Copy link
Contributor

In my opinion it would be better to not create backports, but rather create bespoke PR that manually changes all required files for secret expander to work correctly.

@alenkacz alenkacz closed this Apr 7, 2025
@chrisseto chrisseto deleted the backport/release/v2.3.x/pr-641 branch May 7, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants