Skip to content

Commit

Permalink
chore: deprecate azure-devops commands
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiondic committed Jul 25, 2022
1 parent 4bac8a1 commit 766da5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions cmd/copsctl/azure_devops.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import (
func createAzureDevopsCommand() *cobra.Command {
var command = &cobra.Command{
Use: "azure-devops",
Short: "Command group for administration of Azure DevOps accounts",
Short: "[DEPRECATED] Command group for administration of Azure DevOps accounts",
Long: `
Use this command to administer Azure DevOps accounts (aka VSTS / hosted TFS).
[DEPRECATED] Instead of setting up the Azure DevOps service connection, consider using copsctl connect just before deploying via Helm.
This way you will not have a dependency on Azure DevOps and a prerequisite to setup the service connection before deploying.
`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// bind these during pre-run to avoid viper overwriting itself when same PFlag used with multiple commands
Expand Down Expand Up @@ -58,10 +59,10 @@ Use this command to administer Azure DevOps accounts (aka VSTS / hosted TFS).
func createAzureDevopsCreateEndpointCommand() *cobra.Command {
return &cobra.Command{
Use: "create-endpoint",
Short: "Connect the Azure DevOps account to the current Kubernetes cluster.",
Short: "[DEPRECATED] Connect the Azure DevOps account to the current Kubernetes cluster.",
Long: `
Use this command to provision a service account which will be used to create a service endpoint in the Azure DevOps project.
This command is idempotent.
[DEPRECATED] Use this command to provision a service account which will be used to create a service endpoint in the Azure DevOps project.
This command is idempotent. Check azure-devops command info for deprecation explanation.
`,
Run: func(cmd *cobra.Command, args []string) {
azure_devops.NewOrchestrator().ConfigureEndpoint()
Expand Down

0 comments on commit 766da5e

Please sign in to comment.