update: renamed flag --plain-http to --insecure-registry#674
update: renamed flag --plain-http to --insecure-registry#674priteshbandi merged 9 commits intomainfrom unknown repository
Conversation
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
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 <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
RC-5 is the last RC release. The next is v1 release. |
Then we should drop the |
cmd/notation/common.go
Outdated
| opts.Password = os.Getenv(defaultPasswordEnv) | ||
| } | ||
|
|
||
| func aliasNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName { |
There was a problem hiding this comment.
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.
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 <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Thanks @shizhMSFT, good point! I updated the code to reflect it. |
|
Agree to drop |
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
…ct#674) This PR is based on discussions in issue notaryproject#623 with following changes: 1. Renamed flag `--plain-http` to `--insecure-registry` for notation `sign`, `verify`, `list`, `inspect` and `login`. <del>And added the original flag name `--plain-http` as an alias of the new name.</del> 2. Updated the flag's description to `use HTTP protocol while connecting to registries. Should be used only for testing`. Related specs are updated as well. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
…ct#674) This PR is based on discussions in issue notaryproject#623 with following changes: 1. Renamed flag `--plain-http` to `--insecure-registry` for notation `sign`, `verify`, `list`, `inspect` and `login`. <del>And added the original flag name `--plain-http` as an alias of the new name.</del> 2. Updated the flag's description to `use HTTP protocol while connecting to registries. Should be used only for testing`. Related specs are updated as well. Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
This PR is based on discussions in issue #623 with following changes:
--plain-httpto--insecure-registryfor notationsign,verify,list,inspectandlogin.And added the original flag name--plain-httpas 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.