-
Notifications
You must be signed in to change notification settings - Fork 84
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
update: renamed flag --plain-http to --insecure-registry #674
Conversation
Signed-off-by: Patrick Zheng <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #674 +/- ##
==========================================
- Coverage 61.37% 61.35% -0.02%
==========================================
Files 42 42
Lines 2281 2280 -1
==========================================
- Hits 1400 1399 -1
Misses 782 782
Partials 99 99 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yizha1 @Two-Hearts Should we just drop --plain-http
in RC versions?
RC-5 is the last RC release. The next is v1 release. |
Then we should drop the |
cmd/notation/common.go
Outdated
opts.Username = os.Getenv(defaultUsernameEnv) | ||
opts.Password = os.Getenv(defaultPasswordEnv) | ||
} | ||
|
||
func aliasNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend removing aliasing to avoid breaking post RC to GA. Also this should be used only for test either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend removing aliasing to avoid breaking post RC to GA. Also this should be used only for test either way.
Got it. Updated the code to remove aliasing.
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Thanks @shizhMSFT, good point! I updated the code to reflect it. |
Agree to drop |
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is based on discussions in issue #623 with following changes:
--plain-http
to--insecure-registry
for notationsign
,verify
,list
,inspect
andlogin
.And added the original flag name--plain-http
as an alias of the new name.use HTTP protocol while connecting to registries. Should be used only for testing
. Related specs are updated as well.Resolves #623.