Skip to content

Commit

Permalink
Remove runstats commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicatoscani committed Jul 21, 2023
1 parent a0b28a4 commit d4f0fa3
Show file tree
Hide file tree
Showing 27 changed files with 26 additions and 1,965 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
# Changelog

## UNRELEASED

### Changes

- remove **runstatus** commands


## 1.71.2

### Bug Fixes

- Fixed panic in in dbaas type show when authorized is nil (#524)
- Fixed panic in in dbaas type show when authorized is nil (#524)

### Improvements

- Updated alpine version in Dockerfile (#523)
- Updated alpine version in Dockerfile (#523)

## 1.71.1

### Improvements

- create release GH Action workflow (#522)
- create release GH Action workflow (#522)

## 1.71.0

Expand Down
3 changes: 0 additions & 3 deletions cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,4 @@ func buildClient() {
}
globalstate.EgoscaleClient.Client = clientExoV2

csRunstatus = egoscale.NewClient(account.CurrentAccount.RunstatusEndpoint,
account.CurrentAccount.Key,
account.CurrentAccount.APISecret())
}
7 changes: 0 additions & 7 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const (
defaultTemplateVisibility = "public"
defaultTemplateFilter = "featured"
defaultSosEndpoint = "https://sos-{zone}.exo.io"
defaultRunstatusEndpoint = "https://api.runstatus.com"
defaultZone = "ch-dk-2"
defaultOutputFormat = "table"
defaultClientTimeout = 20
Expand Down Expand Up @@ -123,9 +122,6 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
if acc.DefaultSSHKey != "" {
accounts[i]["defaultSSHKey"] = acc.DefaultSSHKey
}
if acc.DefaultRunstatusPage != "" {
accounts[i]["defaultRunstatusPage"] = acc.DefaultRunstatusPage
}
if acc.DefaultTemplate != "" {
accounts[i]["defaultTemplate"] = acc.DefaultTemplate
}
Expand All @@ -152,9 +148,6 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
if acc.DefaultSSHKey != "" {
accounts[accountsSize+i]["defaultSSHKey"] = acc.DefaultSSHKey
}
if acc.DefaultRunstatusPage != "" {
accounts[accountsSize+i]["defaultRunstatusPage"] = acc.DefaultRunstatusPage
}
accounts[accountsSize+i]["account"] = acc.Account
conf.Accounts = append(conf.Accounts, acc)
}
Expand Down
7 changes: 0 additions & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ var gConfigFilePath string
// current Account information
var gAccountName string

var csRunstatus *egoscale.Client

// Aliases
var gListAlias = []string{"ls"}
var gRemoveAlias = []string{"rm"}
Expand Down Expand Up @@ -331,10 +329,6 @@ func initConfig() { //nolint:gocyclo
account.CurrentAccount.SosEndpoint = defaultSosEndpoint
}

if account.CurrentAccount.RunstatusEndpoint == "" {
account.CurrentAccount.RunstatusEndpoint = defaultRunstatusEndpoint
}

if account.CurrentAccount.ClientTimeout == 0 {
account.CurrentAccount.ClientTimeout = defaultClientTimeout
}
Expand All @@ -348,7 +342,6 @@ func initConfig() { //nolint:gocyclo
account.CurrentAccount.Endpoint = strings.TrimRight(account.CurrentAccount.Endpoint, "/")
account.CurrentAccount.DNSEndpoint = strings.TrimRight(account.CurrentAccount.DNSEndpoint, "/")
account.CurrentAccount.SosEndpoint = strings.TrimRight(account.CurrentAccount.SosEndpoint, "/")
account.CurrentAccount.RunstatusEndpoint = strings.TrimRight(account.CurrentAccount.RunstatusEndpoint, "/")
}

func isNonCredentialCmd(cmds ...string) bool {
Expand Down
46 changes: 0 additions & 46 deletions cmd/runstatus.go

This file was deleted.

48 changes: 0 additions & 48 deletions cmd/runstatus_create.go

This file was deleted.

46 changes: 0 additions & 46 deletions cmd/runstatus_delete.go

This file was deleted.

30 changes: 0 additions & 30 deletions cmd/runstatus_incident.go

This file was deleted.

Loading

0 comments on commit d4f0fa3

Please sign in to comment.