Skip to content
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bb2ed83
Onboard Intake (1/3): introduce intake runner command
Sep 2, 2025
a04878f
address review comments
Sep 5, 2025
244a94f
address review comments: fix listing being empty
Sep 8, 2025
6be700c
address review comments: be able to configure custom endpoints
Sep 8, 2025
ef3f641
update docs
Sep 10, 2025
535dfb6
remove option for clearing labels
Sep 15, 2025
1abf8da
Bump Intake OpenAPI to 0.2.0 and address update fixes
Sep 25, 2025
8cc9fe1
Address review: make json and yaml valid for update and delete + remo…
Sep 25, 2025
fcb7cb0
Address review: adjust cli version for client
Sep 25, 2025
511d144
Address review: decrease max message size from example
Sep 25, 2025
aa3b3c0
lint
Sep 25, 2025
5f44694
go.sum
Oct 6, 2025
b74ab89
Address review: prevent nil pointer due to nil response
Oct 9, 2025
a8c658c
Address review: adjust range to avoid using index
Oct 9, 2025
0928e27
Address review: move some vars into constants in tests
Oct 9, 2025
124868a
Address review: move command to beta
Oct 9, 2025
97fde40
Address review: include state, creation time and labels
Oct 9, 2025
12aa33e
Address review: add message for delete operation
Oct 9, 2025
9f35134
Address review: add message for delete operation
Oct 9, 2025
247c065
Re-generate docs
Oct 9, 2025
52bd922
lint
Oct 9, 2025
90c2584
install dependencies required by new linter version
Oct 9, 2025
b65af6e
Merge branch 'main' into yg/onboard-intake
yago-123 Oct 9, 2025
634a2b5
Merge branch 'main' into yg/onboard-intake
yago-123 Oct 10, 2025
3717766
reestablish go.mod
Oct 13, 2025
0de6bf1
use new DebugInputModel function
Oct 13, 2025
3341145
trim line breaks to comply with project style
Oct 13, 2025
0cb825f
Dirty commit: add SDK dependency locally until is merged and released…
Oct 16, 2025
e23654d
Address review: add waiters to create/update/delete operations
Oct 16, 2025
d87e6c5
Add state in Intake Runner listing
Oct 16, 2025
a5d0c3c
Small adjustment: use correct package alias
Oct 17, 2025
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
1 change: 1 addition & 0 deletions docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ stackit beta [flags]

* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
* [stackit beta intake](./stackit_beta_intake.md) - Provides functionality for intake
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex

34 changes: 34 additions & 0 deletions docs/stackit_beta_intake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## stackit beta intake

Provides functionality for intake

### Synopsis

Provides functionality for intake.

```
stackit beta intake [flags]
```

### Options

```
-h, --help Help for "stackit beta intake"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

38 changes: 38 additions & 0 deletions docs/stackit_beta_intake_runner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## stackit beta intake runner

Provides functionality for Intake Runners

### Synopsis

Provides functionality for Intake Runners.

```
stackit beta intake runner [flags]
```

### Options

```
-h, --help Help for "stackit beta intake runner"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake](./stackit_beta_intake.md) - Provides functionality for intake
* [stackit beta intake runner create](./stackit_beta_intake_runner_create.md) - Creates a new Intake Runner
* [stackit beta intake runner delete](./stackit_beta_intake_runner_delete.md) - Deletes an Intake Runner
* [stackit beta intake runner describe](./stackit_beta_intake_runner_describe.md) - Shows details of an Intake Runner
* [stackit beta intake runner list](./stackit_beta_intake_runner_list.md) - Lists all Intake Runners
* [stackit beta intake runner update](./stackit_beta_intake_runner_update.md) - Updates an Intake Runner

48 changes: 48 additions & 0 deletions docs/stackit_beta_intake_runner_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## stackit beta intake runner create

Creates a new Intake Runner

### Synopsis

Creates a new Intake Runner.

```
stackit beta intake runner create [flags]
```

### Examples

```
Create a new Intake Runner with a display name and message capacity limits
$ stackit beta intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000

Create a new Intake Runner with a description and labels
$ stackit beta intake runner create --display-name my-runner --max-message-size-kib 1000 --max-messages-per-hour 5000 --description "Main runner for production" --labels="env=prod,team=billing"
```

### Options

```
--description string Description
--display-name string Display name
-h, --help Help for "stackit beta intake runner create"
--labels stringToString Labels in key=value format, separated by commas. Example: --labels "key1=value1,key2=value2" (default [])
--max-message-size-kib int Maximum message size in KiB
--max-messages-per-hour int Maximum number of messages per hour
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

40 changes: 40 additions & 0 deletions docs/stackit_beta_intake_runner_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta intake runner delete

Deletes an Intake Runner

### Synopsis

Deletes an Intake Runner.

```
stackit beta intake runner delete RUNNER_ID [flags]
```

### Examples

```
Delete an Intake Runner with ID "xxx"
$ stackit beta intake runner delete xxx
```

### Options

```
-h, --help Help for "stackit beta intake runner delete"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

43 changes: 43 additions & 0 deletions docs/stackit_beta_intake_runner_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit beta intake runner describe

Shows details of an Intake Runner

### Synopsis

Shows details of an Intake Runner.

```
stackit beta intake runner describe RUNNER_ID [flags]
```

### Examples

```
Get details of an Intake Runner with ID "xxx"
$ stackit beta intake runner describe xxx

Get details of an Intake Runner with ID "xxx" in JSON format
$ stackit beta intake runner describe xxx --output-format json
```

### Options

```
-h, --help Help for "stackit beta intake runner describe"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

47 changes: 47 additions & 0 deletions docs/stackit_beta_intake_runner_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## stackit beta intake runner list

Lists all Intake Runners

### Synopsis

Lists all Intake Runners for the current project.

```
stackit beta intake runner list [flags]
```

### Examples

```
List all Intake Runners
$ stackit beta intake runner list

List all Intake Runners in JSON format
$ stackit beta intake runner list --output-format json

List up to 5 Intake Runners
$ stackit beta intake runner list --limit 5
```

### Options

```
-h, --help Help for "stackit beta intake runner list"
--limit int Maximum number of entries to list
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

48 changes: 48 additions & 0 deletions docs/stackit_beta_intake_runner_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## stackit beta intake runner update

Updates an Intake Runner

### Synopsis

Updates an Intake Runner. Only the specified fields are updated.

```
stackit beta intake runner update RUNNER_ID [flags]
```

### Examples

```
Update the display name of an Intake Runner with ID "xxx"
$ stackit beta intake runner update xxx --display-name "new-runner-name"

Update the message capacity limits for an Intake Runner with ID "xxx"
$ stackit beta intake runner update xxx --max-message-size-kib 1000 --max-messages-per-hour 10000
```

### Options

```
--description string Description
--display-name string Display name
-h, --help Help for "stackit beta intake runner update"
--labels stringToString Labels in key=value format, separated by commas. Example: --labels "key1=value1,key2=value2". (default [])
--max-message-size-kib int Maximum message size in KiB. Note: Overall message capacity cannot be decreased.
--max-messages-per-hour int Maximum number of messages per hour. Note: Overall message capacity cannot be decreased.
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners

1 change: 1 addition & 0 deletions docs/stackit_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ stackit config set [flags]
--iaas-custom-endpoint string IaaS API base URL, used in calls to this API
--identity-provider-custom-client-id string Identity Provider client ID, used for user authentication
--identity-provider-custom-well-known-configuration string Identity Provider well-known OpenID configuration URL, used for user authentication
--intake-custom-endpoint string Intake API base URL, used in calls to this API
--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
Expand Down
1 change: 1 addition & 0 deletions docs/stackit_config_unset.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ stackit config unset [flags]
--iaas-custom-endpoint IaaS API base URL. If unset, uses the default base URL
--identity-provider-custom-client-id Identity Provider client ID, used for user authentication
--identity-provider-custom-well-known-configuration Identity Provider well-known OpenID configuration URL. If unset, uses the default identity provider
--intake-custom-endpoint Intake API 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
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ require (
github.com/sonatard/noctx v0.1.0 // indirect
github.com/sourcegraph/go-diff v0.7.0 // indirect
github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/intake v0.2.0 // indirect
github.com/stbenjam/no-sprintf-host-port v0.2.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/stretchr/testify v1.11.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ github.com/stackitcloud/stackit-sdk-go/services/git v0.8.0 h1:/weT7P5Uwy1Qlhw0Ni
github.com/stackitcloud/stackit-sdk-go/services/git v0.8.0/go.mod h1:AXFfYBJZIW1o0W0zZEb/proQMhMsb3Nn5E1htS8NDPE=
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.31.0 h1:dnEjyapuv8WwRN5vE2z6+4/+ZqQTBx+bX27x2nOF7Jw=
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.31.0/go.mod h1:854gnLR92NvAbJAA1xZEumrtNh1DoBP1FXTMvhwYA6w=
github.com/stackitcloud/stackit-sdk-go/services/intake v0.2.0 h1:p/zi4VPoCQWk7/2ubi3hxsqiaye41x/Pl3GXYbPkYOY=
github.com/stackitcloud/stackit-sdk-go/services/intake v0.2.0/go.mod h1:jOArPjNRkwv4487+9ab3dRG+lM09leu5FiRohbQs9Z4=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.6.0 h1:q33ZaCBVEBUsnMDxYyuJKtJvGcE5nKgvuPed3s8zXNI=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.6.0/go.mod h1:20QOZ3rBC9wTGgzXzLz9M6YheX0VaxWE0/JI+s8On7k=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1 h1:hv5WrRU9rN6Jx4OwdOGJRyaQrfA9p1tzEoQK6/CDyoA=
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/beta/beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"

"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
Expand Down Expand Up @@ -38,4 +39,5 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
cmd.AddCommand(sqlserverflex.NewCmd(params))
cmd.AddCommand(alb.NewCmd(params))
cmd.AddCommand(intake.NewCmd(params))
}
26 changes: 26 additions & 0 deletions internal/cmd/beta/intake/intake.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package intake

import (
"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/runner"
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
)

// NewCmd creates the 'stackit intake' command
func NewCmd(params *params.CmdParams) *cobra.Command {
cmd := &cobra.Command{
Use: "intake",
Short: "Provides functionality for intake",
Long: "Provides functionality for intake.",
Args: args.NoArgs,
Run: utils.CmdHelp,
}
addSubcommands(cmd, params)
return cmd
}

func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
cmd.AddCommand(runner.NewCmd(params))
}
Loading