From 003ee3f85292e5ab6a049f8412bbb8fa28d4b6eb Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Mon, 11 Apr 2022 08:37:24 +0200 Subject: [PATCH] feat: Rename GitProxyInsecure to InsecureSkipTLS since that property should not only be tied to the proxy feature (#445) BREAKING CHANGE: Rename the create/update project parameter `GitProxyInsecure` to `InsecureSkipTLS` Signed-off-by: Florian Bacher --- pkg/api/models/create_project.go | 4 ++-- pkg/api/models/expanded_project.go | 4 ++-- pkg/api/models/project.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/api/models/create_project.go b/pkg/api/models/create_project.go index 711bf80d..522ddbea 100644 --- a/pkg/api/models/create_project.go +++ b/pkg/api/models/create_project.go @@ -26,8 +26,8 @@ type CreateProject struct { // git proxy user GitProxyUser string `json:"gitProxyUser,omitempty"` - // git proxy insecure - GitProxyInsecure bool `json:"gitProxyInsecure"` + // insecure skip tls + InsecureSkipTLS bool `json:"insecureSkipTLS"` // git proxy password GitProxyPassword string `json:"gitProxyPassword,omitempty"` diff --git a/pkg/api/models/expanded_project.go b/pkg/api/models/expanded_project.go index fa3fe64f..2a43c3ac 100644 --- a/pkg/api/models/expanded_project.go +++ b/pkg/api/models/expanded_project.go @@ -35,8 +35,8 @@ type ExpandedProject struct { // git proxy user GitProxyUser string `json:"gitProxyUser,omitempty"` - // git proxy insecure - GitProxyInsecure bool `json:"gitProxyInsecure"` + // insecure skip tls + InsecureSkipTLS bool `json:"insecureSkipTLS"` // stages Stages []*ExpandedStage `json:"stages"` diff --git a/pkg/api/models/project.go b/pkg/api/models/project.go index 5e4e0193..454c4b5d 100644 --- a/pkg/api/models/project.go +++ b/pkg/api/models/project.go @@ -29,8 +29,8 @@ type Project struct { // git proxy user GitProxyUser string `json:"gitProxyUser,omitempty"` - // git proxy insecure - GitProxyInsecure bool `json:"gitProxyInsecure"` + // insecure skip tls + InsecureSkipTLS bool `json:"insecureSkipTLS"` // git proxy password GitProxyPassword string `json:"gitProxyPassword,omitempty"`