Print deprecation warning when using CloudFormation target

This commit is contained in:
John Gardiner Myers 2021-06-10 07:11:23 -07:00
parent d878274767
commit f19bc57eb4
1 changed files with 8 additions and 0 deletions

View File

@ -718,6 +718,14 @@ func (c *ApplyClusterCmd) Run(ctx context.Context) error {
// Can cause conflicts with cloudformation management
shouldPrecreateDNS = false
fmt.Printf("\n")
fmt.Printf("%s\n", starline)
fmt.Printf("\n")
fmt.Printf("Kops support for CloudFormation is deprecated and will be removed in a future release.\n")
fmt.Printf("\n")
fmt.Printf("%s\n", starline)
fmt.Printf("\n")
case TargetDryRun:
target = fi.NewDryRunTarget(assetBuilder, os.Stdout)
dryRun = true