Skip to content

Commit 5f89a59

Browse files
🐛 fix: deprecate message should be in go/v3 (#3277)
fix: deprecate message should be in go/v3
1 parent 9557eb2 commit 5f89a59

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/plugins/golang/v3/plugin.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ func (p Plugin) GetCreateWebhookSubcommand() plugin.CreateWebhookSubcommand {
6262

6363
// GetEditSubcommand will return the subcommand which is responsible for editing the scaffold of the project
6464
func (p Plugin) GetEditSubcommand() plugin.EditSubcommand { return &p.editSubcommand }
65+
66+
func (p Plugin) DeprecationWarning() string {
67+
return "This version is deprecated." +
68+
"The `go/v3` cannot scaffold projects using kustomize versions v4x+" +
69+
" and cannot fully support Kubernetes 1.25+." +
70+
"It is recommended to upgrade your project to the latest versions available (go/v4)." +
71+
"Please, check the migration guide to learn how to upgrade your project"
72+
}

pkg/plugins/golang/v4/plugin.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,3 @@ func (p Plugin) GetCreateWebhookSubcommand() plugin.CreateWebhookSubcommand {
6363

6464
// GetEditSubcommand will return the subcommand which is responsible for editing the scaffold of the project
6565
func (p Plugin) GetEditSubcommand() plugin.EditSubcommand { return &p.editSubcommand }
66-
67-
func (p Plugin) DeprecationWarning() string {
68-
return "This version is deprecated." +
69-
"The `go/v3` cannot scaffold projects using kustomize versions v4x+" +
70-
" and cannot fully support Kubernetes 1.25+." +
71-
"It is recommended to upgrade your project to the latest versions available (go/v4)." +
72-
"Please, check the migration guide to learn how to upgrade your project"
73-
}

0 commit comments

Comments
 (0)