Skip to content

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

Merged
chenbh merged 3 commits intomainfrom
Issue-324-bug-fix-create-secret
Aug 8, 2023
Merged

[Issue-324] Removes logic that parses registry host when using `kp cr…#328
chenbh merged 3 commits intomainfrom
Issue-324-bug-fix-create-secret

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 <fcaroline@vmware.com>
@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 <fcaroline@vmware.com>
@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/

Signed-off-by: Caroline Scherf <fcaroline@vmware.com>
@chenbh chenbh merged commit 639d941 into main Aug 8, 2023
@chenbh chenbh deleted the Issue-324-bug-fix-create-secret branch August 8, 2023 19:44
neil-hickey pushed a commit to neil-hickey/kpack-cli that referenced this pull request Jan 13, 2026
…/Issue-324-bug-fix-create-secret

[Issue-324] Removes logic that parses registry host when using `kp cr…
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