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

[Issue-324] Removes logic that parses registry host when using `kp cr… #328

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

fcaroline2020
Copy link
Contributor

…eate secret --registry` flag, fixes bug that caused dockerhub registry to parse incorrectly

…eate secret --registry` flag, fixes bug that caused dockerhub registry to parse incorrectly

Signed-off-by: Caroline Scherf <[email protected]>
@fcaroline2020 fcaroline2020 requested a review from a team as a code owner July 24, 2023 10:17
@fcaroline2020 fcaroline2020 linked an issue Jul 24, 2023 that may be closed by this pull request
@tomkennedy513
Copy link
Contributor

Since we are changing behavior, do you think we should leave the parsing logic in place, but instead of actually updating the registry host, generate log that says we aren't in the case that we would have originally. Also, might be worth adding some log that prints their registry when creating the secret (i.e. Created secret some-secret for gcr.io)

…nts out the repository that the secret was created for

Signed-off-by: Caroline Scherf <[email protected]>
@fcaroline2020
Copy link
Contributor Author

@tomkennedy513 parsing logic is back in with additional logic to handle docker. I've also added a log that prints the secret's target registry e.g
Secret "my-registry-cred" created for registry https://index.docker.io/v1/

pkg/commands/secret/create_test.go Outdated Show resolved Hide resolved
pkg/secret/factory.go Outdated Show resolved Hide resolved
@chenbh chenbh merged commit 639d941 into main Aug 8, 2023
1 check passed
@chenbh chenbh deleted the Issue-324-bug-fix-create-secret branch August 8, 2023 19:44
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.

kp secret create --registry does not correctly parse registries
3 participants