Skip to content

Move SKE enable/disable to the Service Enablement API #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions docs/stackit_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,28 @@ stackit config set [flags]
### Options

```
--argus-custom-endpoint string Argus API base URL, used in calls to this API
--authorization-custom-endpoint string Authorization API base URL, used in calls to this API
--dns-custom-endpoint string DNS API base URL, used in calls to this API
-h, --help Help for "stackit config set"
--identity-provider-custom-endpoint string Identity Provider base URL, used for user authentication
--load-balancer-custom-endpoint string Load Balancer API base URL, used in calls to this API
--logme-custom-endpoint string LogMe API base URL, used in calls to this API
--mariadb-custom-endpoint string MariaDB API base URL, used in calls to this API
--mongodbflex-custom-endpoint string MongoDB Flex API base URL, used in calls to this API
--object-storage-custom-endpoint string Object Storage API base URL, used in calls to this API
--opensearch-custom-endpoint string OpenSearch API base URL, used in calls to this API
--postgresflex-custom-endpoint string PostgreSQL Flex API base URL, used in calls to this API
--rabbitmq-custom-endpoint string RabbitMQ API base URL, used in calls to this API
--redis-custom-endpoint string Redis API base URL, used in calls to this API
--resource-manager-custom-endpoint string Resource Manager API base URL, used in calls to this API
--secrets-manager-custom-endpoint string Secrets Manager API base URL, used in calls to this API
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
--ske-custom-endpoint string SKE API base URL, used in calls to this API
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
--argus-custom-endpoint string Argus API base URL, used in calls to this API
--authorization-custom-endpoint string Authorization API base URL, used in calls to this API
--dns-custom-endpoint string DNS API base URL, used in calls to this API
-h, --help Help for "stackit config set"
--identity-provider-custom-endpoint string Identity Provider base URL, used for user authentication
--load-balancer-custom-endpoint string Load Balancer API base URL, used in calls to this API
--logme-custom-endpoint string LogMe API base URL, used in calls to this API
--mariadb-custom-endpoint string MariaDB API base URL, used in calls to this API
--mongodbflex-custom-endpoint string MongoDB Flex API base URL, used in calls to this API
--object-storage-custom-endpoint string Object Storage API base URL, used in calls to this API
--opensearch-custom-endpoint string OpenSearch API base URL, used in calls to this API
--postgresflex-custom-endpoint string PostgreSQL Flex API base URL, used in calls to this API
--rabbitmq-custom-endpoint string RabbitMQ API base URL, used in calls to this API
--redis-custom-endpoint string Redis API base URL, used in calls to this API
--resource-manager-custom-endpoint string Resource Manager API base URL, used in calls to this API
--secrets-manager-custom-endpoint string Secrets Manager API base URL, used in calls to this API
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
--service-enablement-custom-endpoint string Service Enablement API base URL, used in calls to this API
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
--ske-custom-endpoint string SKE API base URL, used in calls to this API
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
```

### Options inherited from parent commands
Expand Down
51 changes: 26 additions & 25 deletions docs/stackit_config_unset.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,32 @@ stackit config unset [flags]
### Options

```
--argus-custom-endpoint Argus API base URL. If unset, uses the default base URL
--async Configuration option to run commands asynchronously
--authorization-custom-endpoint Authorization API base URL. If unset, uses the default base URL
--dns-custom-endpoint DNS API base URL. If unset, uses the default base URL
-h, --help Help for "stackit config unset"
--identity-provider-custom-endpoint Identity Provider base URL. If unset, uses the default base URL
--load-balancer-custom-endpoint Load Balancer API base URL. If unset, uses the default base URL
--logme-custom-endpoint LogMe API base URL. If unset, uses the default base URL
--mariadb-custom-endpoint MariaDB API base URL. If unset, uses the default base URL
--mongodbflex-custom-endpoint MongoDB Flex API base URL. If unset, uses the default base URL
--object-storage-custom-endpoint Object Storage API base URL. If unset, uses the default base URL
--opensearch-custom-endpoint OpenSearch API base URL. If unset, uses the default base URL
--output-format Output format
--postgresflex-custom-endpoint PostgreSQL Flex API base URL. If unset, uses the default base URL
--project-id Project ID
--rabbitmq-custom-endpoint RabbitMQ API base URL. If unset, uses the default base URL
--redis-custom-endpoint Redis API base URL. If unset, uses the default base URL
--resource-manager-custom-endpoint Resource Manager API base URL. If unset, uses the default base URL
--secrets-manager-custom-endpoint Secrets Manager API base URL. If unset, uses the default base URL
--serverbackup-custom-endpoint Server Backup base URL. If unset, uses the default base URL
--service-account-custom-endpoint SKE API base URL. If unset, uses the default base URL
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 2h
--ske-custom-endpoint SKE API base URL. If unset, uses the default base URL
--sqlserverflex-custom-endpoint SQLServer Flex API base URL. If unset, uses the default base URL
--verbosity Verbosity of the CLI
--argus-custom-endpoint Argus API base URL. If unset, uses the default base URL
--async Configuration option to run commands asynchronously
--authorization-custom-endpoint Authorization API base URL. If unset, uses the default base URL
--dns-custom-endpoint DNS API base URL. If unset, uses the default base URL
-h, --help Help for "stackit config unset"
--identity-provider-custom-endpoint Identity Provider base URL. If unset, uses the default base URL
--load-balancer-custom-endpoint Load Balancer API base URL. If unset, uses the default base URL
--logme-custom-endpoint LogMe API base URL. If unset, uses the default base URL
--mariadb-custom-endpoint MariaDB API base URL. If unset, uses the default base URL
--mongodbflex-custom-endpoint MongoDB Flex API base URL. If unset, uses the default base URL
--object-storage-custom-endpoint Object Storage API base URL. If unset, uses the default base URL
--opensearch-custom-endpoint OpenSearch API base URL. If unset, uses the default base URL
--output-format Output format
--postgresflex-custom-endpoint PostgreSQL Flex API base URL. If unset, uses the default base URL
--project-id Project ID
--rabbitmq-custom-endpoint RabbitMQ API base URL. If unset, uses the default base URL
--redis-custom-endpoint Redis API base URL. If unset, uses the default base URL
--resource-manager-custom-endpoint Resource Manager API base URL. If unset, uses the default base URL
--secrets-manager-custom-endpoint Secrets Manager API base URL. If unset, uses the default base URL
--serverbackup-custom-endpoint Server Backup base URL. If unset, uses the default base URL
--service-account-custom-endpoint Service Account API base URL. If unset, uses the default base URL
--service-enablement-custom-endpoint Service Enablement API base URL. If unset, uses the default base URL
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 2h
--ske-custom-endpoint SKE API base URL. If unset, uses the default base URL
--sqlserverflex-custom-endpoint SQLServer Flex API base URL. If unset, uses the default base URL
--verbosity Verbosity of the CLI
```

### Options inherited from parent commands
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.8.0
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.1.0
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.4.0
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v0.2.0
github.com/stackitcloud/stackit-sdk-go/services/ske v0.18.0
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v0.3.0
github.com/zalando/go-keyring v0.2.5
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.1.0 h1:fYCBNvh4t
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.1.0/go.mod h1:ZYI3wj/NnhhWi25ugbdcniwnY/7mF6zN582c5HPe00o=
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.4.0 h1:JB1O0E9+L50ZaO36uz7azurvUuB5JdX5s2ZXuIdb9t8=
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.4.0/go.mod h1:Ni9RBJvcaXRIrDIuQBpJcuQvCQSj27crQSyc+WM4p0c=
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v0.2.0 h1:HAEFciLgeCY+kIcGcb+/zFUF3zt3z326v6JCen6fSjs=
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v0.2.0/go.mod h1:z6XdA+ndaWzcPW/P0QrUIcTXJzKlajxgGZ5+EwXNS+c=
github.com/stackitcloud/stackit-sdk-go/services/ske v0.18.0 h1:gxbOYBpHBLMuzltbOGz7OwRFtjCZ9X56a2apsPP/8uU=
github.com/stackitcloud/stackit-sdk-go/services/ske v0.18.0/go.mod h1:0fFs4R7kg+gU7FNAIzzFvlCZJz6gyZ8CFhbK3eSrAwQ=
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v0.3.0 h1:M6tcXUMNM6XMfHVQeQzB6IjfPdAxnZar3YD+YstRStc=
Expand Down
40 changes: 22 additions & 18 deletions internal/cmd/config/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,25 @@ const (
sessionTimeLimitFlag = "session-time-limit"
identityProviderCustomEndpointFlag = "identity-provider-custom-endpoint"

argusCustomEndpointFlag = "argus-custom-endpoint"
authorizationCustomEndpointFlag = "authorization-custom-endpoint"
dnsCustomEndpointFlag = "dns-custom-endpoint"
loadBalancerCustomEndpointFlag = "load-balancer-custom-endpoint"
logMeCustomEndpointFlag = "logme-custom-endpoint"
mariaDBCustomEndpointFlag = "mariadb-custom-endpoint"
mongoDBFlexCustomEndpointFlag = "mongodbflex-custom-endpoint"
objectStorageCustomEndpointFlag = "object-storage-custom-endpoint"
openSearchCustomEndpointFlag = "opensearch-custom-endpoint"
postgresFlexCustomEndpointFlag = "postgresflex-custom-endpoint"
rabbitMQCustomEndpointFlag = "rabbitmq-custom-endpoint"
redisCustomEndpointFlag = "redis-custom-endpoint"
resourceManagerCustomEndpointFlag = "resource-manager-custom-endpoint"
secretsManagerCustomEndpointFlag = "secrets-manager-custom-endpoint"
serverBackupCustomEndpointFlag = "serverbackup-custom-endpoint"
serviceAccountCustomEndpointFlag = "service-account-custom-endpoint"
skeCustomEndpointFlag = "ske-custom-endpoint"
sqlServerFlexCustomEndpointFlag = "sqlserverflex-custom-endpoint"
argusCustomEndpointFlag = "argus-custom-endpoint"
authorizationCustomEndpointFlag = "authorization-custom-endpoint"
dnsCustomEndpointFlag = "dns-custom-endpoint"
loadBalancerCustomEndpointFlag = "load-balancer-custom-endpoint"
logMeCustomEndpointFlag = "logme-custom-endpoint"
mariaDBCustomEndpointFlag = "mariadb-custom-endpoint"
mongoDBFlexCustomEndpointFlag = "mongodbflex-custom-endpoint"
objectStorageCustomEndpointFlag = "object-storage-custom-endpoint"
openSearchCustomEndpointFlag = "opensearch-custom-endpoint"
postgresFlexCustomEndpointFlag = "postgresflex-custom-endpoint"
rabbitMQCustomEndpointFlag = "rabbitmq-custom-endpoint"
redisCustomEndpointFlag = "redis-custom-endpoint"
resourceManagerCustomEndpointFlag = "resource-manager-custom-endpoint"
secretsManagerCustomEndpointFlag = "secrets-manager-custom-endpoint"
serverBackupCustomEndpointFlag = "serverbackup-custom-endpoint"
serviceAccountCustomEndpointFlag = "service-account-custom-endpoint"
serviceEnablementCustomEndpointFlag = "service-enablement-custom-endpoint"
skeCustomEndpointFlag = "ske-custom-endpoint"
sqlServerFlexCustomEndpointFlag = "sqlserverflex-custom-endpoint"
)

type inputModel struct {
Expand Down Expand Up @@ -141,6 +142,7 @@ func configureFlags(cmd *cobra.Command) {
cmd.Flags().String(resourceManagerCustomEndpointFlag, "", "Resource Manager API base URL, used in calls to this API")
cmd.Flags().String(secretsManagerCustomEndpointFlag, "", "Secrets Manager API base URL, used in calls to this API")
cmd.Flags().String(serviceAccountCustomEndpointFlag, "", "Service Account API base URL, used in calls to this API")
cmd.Flags().String(serviceEnablementCustomEndpointFlag, "", "Service Enablement API base URL, used in calls to this API")
cmd.Flags().String(serverBackupCustomEndpointFlag, "", "Server Backup API base URL, used in calls to this API")
cmd.Flags().String(skeCustomEndpointFlag, "", "SKE API base URL, used in calls to this API")
cmd.Flags().String(sqlServerFlexCustomEndpointFlag, "", "SQLServer Flex API base URL, used in calls to this API")
Expand Down Expand Up @@ -182,6 +184,8 @@ func configureFlags(cmd *cobra.Command) {
cobra.CheckErr(err)
err = viper.BindPFlag(config.ServiceAccountCustomEndpointKey, cmd.Flags().Lookup(serviceAccountCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.ServiceEnablementCustomEndpointKey, cmd.Flags().Lookup(serviceEnablementCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.SKECustomEndpointKey, cmd.Flags().Lookup(skeCustomEndpointFlag))
cobra.CheckErr(err)
err = viper.BindPFlag(config.SQLServerFlexCustomEndpointKey, cmd.Flags().Lookup(sqlServerFlexCustomEndpointFlag))
Expand Down
Loading