Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix sidecar credentials validation #2134

Merged
merged 2 commits into from
May 24, 2024

Conversation

pjuarezd
Copy link
Member

@pjuarezd pjuarezd commented May 24, 2024

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>
Copy link
Contributor

@shtripat shtripat left a comment

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
30 checks passed
@pjuarezd pjuarezd deleted the fix-root-credentials-validation branch May 24, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants