Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Bugfix sidecar credentials validation - #2134

Merged
pjuarezd merged 2 commits into
minio:masterfrom
pjuarezd:fix-root-credentials-validation
May 24, 2024
Merged

pjuarezd merged 2 commits into
minio:masterfrom
pjuarezd:fix-root-credentials-validation

Conversation

@pjuarezd

@pjuarezd pjuarezd commented May 24, 2024 •

Copy link
Copy Markdown
Member

This PR fixes findings of @twelho in #2056, except that sidecar files are moved now to a new path and the original PR has conflicts. After additional testing found a few more little enhancements we can do:

  • FIx: On the modification of the tenant configuration secret sidecar allways return Missing root credentials in the configuration. and exits, causing tenant pods to restart.

  • Adds little Config secret '%s' sync log line to know when a secret sync event has triggered in sidecar.

  • Remove pkg/validator.go file, it got moved to sidecar/pkg/validator/validator.go and this one is no longer needed.

  • Fix: "Struct Controller has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation."

  • Run Informer factories in goroutines to do not block the process and proceed to wait for caches to sync.

Sidecar allways return `Missing root credentials in the configuration.` causing tenant to not start on the modification of the tenant configuration secret that sidecar observes

* Adds little `Config secret '%s' sync` log line to know when a secret sync event has triggered in sidecar.

* Remove `pkg/validator.go` file, it got moved to `sidecar/pkg/validator/validator.go` and this one is no longer needed.

* Fix: "Struct Controller has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation."

* Run Informer factories in goroutines to do not block the process and proceed to wait for caches to sync.

Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
@pjuarezd
pjuarezd requested a review from dvaldivia May 24, 2024 06:38
@pjuarezd pjuarezd self-assigned this May 24, 2024
jiuker
jiuker previously approved these changes May 24, 2024
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@pjuarezd
pjuarezd merged commit fdb7232 into minio:master May 24, 2024
@pjuarezd
pjuarezd deleted the fix-root-credentials-validation branch May 24, 2024 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants