Skip to content

Commit 1d7a538

Browse files
committed
feat(info)!: remove deprecated "cluster-info" sub-command
pleas use "copsctl info environment" instead
1 parent 9a601b9 commit 1d7a538

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

cmd/copsctl/info.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"fmt"
54
"github.com/conplementAG/copsctl/internal/cmd/flags"
65
"github.com/conplementAG/copsctl/internal/info"
76
"github.com/conplementag/cops-hq/v2/pkg/cli"
@@ -18,25 +17,10 @@ func createInfoCommands(hq hq.HQ) {
1817

1918
orchestrator := info.New(hq)
2019

21-
createClusterInfoCommand(hq, orchestrator)
2220
createInfoClusterCommand(infoCmdGroup, orchestrator)
2321
createInfoEnvironmentCommand(infoCmdGroup, orchestrator)
2422
}
2523

26-
func createClusterInfoCommand(hq hq.HQ, o *info.Orchestrator) {
27-
clusterInfoCmdGroup := hq.GetCli().AddBaseCommand("cluster-info",
28-
"[DEPRECATED] Command for showing the CoreOps cluster information",
29-
fmt.Sprintf("[DEPRECATED] Use this command to get the cluster info which might be useful for your. "+
30-
"For example, if the static outbound IPs are enabled for the cluster, then you can use this command to get "+
31-
"these IPs. Make sure you are connected to the cluster first. Use the %s flag for automation.",
32-
flags.PrintToStdoutSilenceEverythingElse),
33-
func() {
34-
o.ShowEnvironmentInfo()
35-
})
36-
37-
addSilenceParam(clusterInfoCmdGroup)
38-
}
39-
4024
func createInfoClusterCommand(cmd cli.Command, o *info.Orchestrator) {
4125
infoClusterCmd := cmd.AddCommand("cluster", "Get cluster infos",
4226
"Use this command to get information around cluster which have the same lifecycle as the cluster itself "+

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/conplementAG/copsctl
22

3-
go 1.23
3+
go 1.23.0
44

5-
toolchain go1.23.1
5+
toolchain go1.24.0
66

77
require (
88
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0

0 commit comments

Comments
 (0)