From e56ffdd98510f915831720fa5947492b7a91677f Mon Sep 17 00:00:00 2001 From: madmecodes Date: Sun, 10 May 2026 17:09:24 +0530 Subject: [PATCH] fix: default insecure flag to false for registry create Signed-off-by: madmecodes --- cmd/harbor/root/registry/create.go | 2 +- doc/cli-docs/harbor-registry-create.md | 2 +- doc/man-docs/man1/harbor-registry-create.1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/harbor/root/registry/create.go b/cmd/harbor/root/registry/create.go index 1fff7225a..784eeebb4 100644 --- a/cmd/harbor/root/registry/create.go +++ b/cmd/harbor/root/registry/create.go @@ -73,7 +73,7 @@ func CreateRegistryCommand() *cobra.Command { &opts.Insecure, "insecure", "", - true, + false, "Whether Harbor will verify the server certificate", ) flags.StringVarP( diff --git a/doc/cli-docs/harbor-registry-create.md b/doc/cli-docs/harbor-registry-create.md index 7b9d9ffdd..954ea3cb5 100644 --- a/doc/cli-docs/harbor-registry-create.md +++ b/doc/cli-docs/harbor-registry-create.md @@ -26,7 +26,7 @@ harbor registry create --credential-type string Credential type, such as 'basic', 'oauth' (default "basic") --description string Description of the registry -h, --help help for create - --insecure Whether Harbor will verify the server certificate (default true) + --insecure Whether Harbor will verify the server certificate --name string Name of the registry --type string Type of the registry --url string Registry endpoint URL diff --git a/doc/man-docs/man1/harbor-registry-create.1 b/doc/man-docs/man1/harbor-registry-create.1 index f21a2d6c1..c32a9dcde 100644 --- a/doc/man-docs/man1/harbor-registry-create.1 +++ b/doc/man-docs/man1/harbor-registry-create.1 @@ -34,7 +34,7 @@ create registry help for create .PP -\fB--insecure\fP[=true] +\fB--insecure\fP[=false] Whether Harbor will verify the server certificate .PP