From 4445c9b78c9a3fcdba336e0617f4759856db4c5d Mon Sep 17 00:00:00 2001 From: Varsha Munishwar Date: Tue, 10 Oct 2023 11:40:29 -0700 Subject: [PATCH] Update flag name SkipSSLVerification to DangerousSkipTLSVerify Signed-off-by: Varsha Munishwar --- pkg/vendir/config/directory.go | 8 ++++---- pkg/vendir/fetch/git/git.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/vendir/config/directory.go b/pkg/vendir/config/directory.go index 0e2acee7..beb406aa 100644 --- a/pkg/vendir/config/directory.go +++ b/pkg/vendir/config/directory.go @@ -67,10 +67,10 @@ type DirectoryContentsGit struct { // +optional SecretRef *DirectoryContentsLocalRef `json:"secretRef,omitempty"` // +optional - LFSSkipSmudge bool `json:"lfsSkipSmudge,omitempty"` - SkipSSLVerification bool `json:"skipSSLVerification,omitempty"` - SkipInitSubmodules bool `json:"skipInitSubmodules,omitempty"` - Depth int `json:"depth,omitempty"` + LFSSkipSmudge bool `json:"lfsSkipSmudge,omitempty"` + DangerousSkipTLSVerify bool `json:"dangerousSkipTLSVerify,omitempty"` + SkipInitSubmodules bool `json:"skipInitSubmodules,omitempty"` + Depth int `json:"depth,omitempty"` } type DirectoryContentsGitVerification struct { diff --git a/pkg/vendir/fetch/git/git.go b/pkg/vendir/fetch/git/git.go index d88045f0..b5d52293 100644 --- a/pkg/vendir/fetch/git/git.go +++ b/pkg/vendir/fetch/git/git.go @@ -120,7 +120,7 @@ func (t *Git) fetch(dstPath string, tempArea ctlfetch.TempArea) error { if t.opts.LFSSkipSmudge { env = append(env, "GIT_LFS_SKIP_SMUDGE=1") } - if t.opts.SkipSSLVerification { + if t.opts.DangerousSkipTLSVerify { env = append(env, "GIT_SSL_NO_VERIFY=true") } gitURL := t.opts.URL