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

add repository to the credentials prompt #2596

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

gauron99
Copy link
Contributor

@gauron99 gauron99 commented Nov 25, 2024

Added repository value (now it is registry/repository) to prompt for credentials where its used for printing out tto terminal "during the prompt" to make it easier for the user to see what he is trying to provide credentials for.

Additionally I have created a new issue that is a followup to this and its' purpose is to further optimize this "credentials" process

fix #2562

Copy link

knative-prow bot commented Nov 25, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 25, 2024
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 25, 2024
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.42%. Comparing base (cd24d85) to head (dd6a10e).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cmd/prompt/prompt.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2596      +/-   ##
==========================================
+ Coverage   64.13%   65.42%   +1.28%     
==========================================
  Files         130      130              
  Lines       15516    15518       +2     
==========================================
+ Hits         9951    10152     +201     
+ Misses       4625     4389     -236     
- Partials      940      977      +37     
Flag Coverage Δ
e2e-test 35.81% <11.11%> (-0.02%) ⬇️
e2e-test-oncluster 32.87% <11.11%> (+0.03%) ⬆️
e2e-test-oncluster-runtime 28.65% <11.11%> (?)
e2e-test-runtime-go 26.44% <11.11%> (?)
e2e-test-runtime-node 25.84% <11.11%> (?)
e2e-test-runtime-python 25.84% <11.11%> (?)
e2e-test-runtime-quarkus 25.99% <11.11%> (?)
e2e-test-runtime-rust 24.94% <11.11%> (?)
e2e-test-runtime-springboot 24.98% <11.11%> (?)
e2e-test-runtime-typescript 25.95% <11.11%> (?)
integration-tests 51.93% <33.33%> (+2.26%) ⬆️
unit-tests 50.93% <88.88%> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 26, 2024
@gauron99 gauron99 force-pushed the registry-error-message branch from 845eaa4 to 0c162c3 Compare November 26, 2024 21:52
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 26, 2024
@gauron99 gauron99 force-pushed the registry-error-message branch from 0c162c3 to 1aac8ed Compare November 26, 2024 22:01
@gauron99
Copy link
Contributor Author

@matejvasek what about this. I have changed the sole argument that needed it. Added a repository to it so now it is displayed when the prompt asks you for your credentials when trying to 'push' WITH the actual 'registry/repository'
Althought I had to change the prompt tests to reflect this as well

@gauron99 gauron99 changed the title add full image name to the credentials prompt output add repository to the credentials prompt Nov 27, 2024
@matejvasek
Copy link
Contributor

@gauron99

what about this. I have changed the sole argument that needed it.

This seems reasonable. Just call it repository instead of overly verbose registryWithRepo.

IMO that how our flag should have been called: instead of --registry we should have had --repository or --img-reposotry.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 28, 2024
Signed-off-by: David Fridrich <[email protected]>
Signed-off-by: David Fridrich <[email protected]>
Signed-off-by: David Fridrich <[email protected]>
Signed-off-by: David Fridrich <[email protected]>
@gauron99 gauron99 force-pushed the registry-error-message branch from 78f3f44 to 8c10137 Compare December 2, 2024 09:02
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 2, 2024
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 2, 2024
Signed-off-by: David Fridrich <[email protected]>
@gauron99 gauron99 marked this pull request as ready for review December 2, 2024 09:43
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2024
@knative-prow knative-prow bot requested a review from dsimansk December 2, 2024 09:43
@knative-prow knative-prow bot requested a review from rhuss December 2, 2024 09:43
@gauron99 gauron99 removed request for dsimansk and rhuss December 2, 2024 09:43
@gauron99 gauron99 assigned lkingland and unassigned lkingland Dec 2, 2024
@gauron99 gauron99 requested a review from lkingland December 2, 2024 09:44
@gauron99
Copy link
Contributor Author

gauron99 commented Dec 2, 2024

@matejvasek @lkingland PTAL

@matejvasek
Copy link
Contributor

/approve
/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2024
Copy link

knative-prow bot commented Dec 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, matejvasek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [gauron99,matejvasek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit 582536f into knative:main Dec 2, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong error message when login to OCI registry interactively.
4 participants