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

refactor: simpler docker secret code #122

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

abuchanan-airbyte
Copy link
Collaborator

Minor simplification I noticed while browsing through the code.

@abuchanan-airbyte abuchanan-airbyte requested a review from a team as a code owner September 18, 2024 15:44
act, err := Secret("my-registry.example:5000", "tiger", "pass1234", "tiger@acme.example")
if err != nil {
t.Fatal(err)
}
if d := cmp.Diff(exp, string(act)); d != "" {
Copy link
Member

Choose a reason for hiding this comment

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

Not a fan of the Diff function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Mainly because when I made it fail, I couldn't tell what was wrong. Seeing them one above the other was much easier.

@abuchanan-airbyte abuchanan-airbyte merged commit 5da58fd into main Sep 19, 2024
2 checks passed
@abuchanan-airbyte abuchanan-airbyte deleted the abuch/simplier-docker-secret branch September 19, 2024 13:56
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.

2 participants