Skip to content

Commit 43f29b2

Browse files
authored
docs: print deprecation message to stderr (Azure#4905)
1 parent 2a55cab commit 43f29b2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main.go

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ import (
1313

1414
func main() {
1515
log.SetFormatter(&log.TextFormatter{ForceColors: true})
16+
log.SetOutput(colorable.NewColorableStderr())
17+
msg := `
18+
aks-engine is deprecated for Azure public cloud customers. Learn more at:
19+
https://github.com/Azure/aks-engine#project-status
20+
21+
Please consider using Azure Kubernetes Service (AKS) for managed Kubernetes:
22+
https://azure.microsoft.com/services/kubernetes-service/
23+
or Cluster API Provider Azure (CAPZ) for self-managed Kubernetes:
24+
https://capz.sigs.k8s.io/
25+
`
26+
log.Warningf("\u001b[33m%s\u001b[0m", msg)
1627
log.SetOutput(colorable.NewColorableStdout())
1728
if err := cmd.NewRootCmd().Execute(); err != nil {
1829
os.Exit(1)

0 commit comments

Comments
 (0)