Skip to content

Commit 23cf858

Browse files
Merge branch 'main' into ignoreExistingProfileCreate
2 parents 5fab164 + 0c4a1e5 commit 23cf858

File tree

992 files changed

+26794
-3710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

992 files changed

+26794
-3710
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
cooldown:
8+
default-days: 7
9+
exclude: ["github.com/stackitcloud*"]
710
- package-ecosystem: "github-actions"
811
directory: "/"
912
schedule:
1013
interval: "daily"
14+
cooldown:
15+
default-days: 7

.github/docs/contribution-guide/cmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7+
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
8+
79
"github.com/spf13/cobra"
8-
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
910
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
1011
"github.com/stackitcloud/stackit-cli/internal/pkg/errors"
1112
"github.com/stackitcloud/stackit-cli/internal/pkg/examples"
@@ -33,7 +34,7 @@ type inputModel struct {
3334
}
3435

3536
// "bar" command constructor
36-
func NewCmd(params *params.CmdParams) *cobra.Command {
37+
func NewCmd(params *types.CmdParams) *cobra.Command {
3738
cmd := &cobra.Command{
3839
Use: "bar",
3940
Short: "Short description of the command (is shown in the help of parent command)",

.github/renovate.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2121

2222
- name: Install go
2323
uses: actions/setup-go@v6
@@ -36,7 +36,7 @@ jobs:
3636
run: make test
3737

3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v5
39+
uses: actions/upload-artifact@v6
4040
with:
4141
name: ${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
4242
path: ${{ env.CODE_COVERAGE_FILE_NAME }}
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v5
50+
uses: actions/checkout@v6
5151

5252
- name: Check GoReleaser
5353
uses: goreleaser/goreleaser-action@v6

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v6
2727
with:
2828
# Allow goreleaser to access older tag information.
2929
fetch-depth: 0
@@ -90,7 +90,7 @@ jobs:
9090
rm -f "$GPG_KEY_PATH"
9191
9292
- name: Upload artifacts to workflow
93-
uses: actions/upload-artifact@v5
93+
uses: actions/upload-artifact@v6
9494
with:
9595
name: goreleaser-dist-temp
9696
path: dist
@@ -106,11 +106,11 @@ jobs:
106106
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
107107
steps:
108108
- name: Checkout
109-
uses: actions/checkout@v5
109+
uses: actions/checkout@v6
110110

111111
# use the artifacts from the "goreleaser" job
112112
- name: Download artifacts from workflow
113-
uses: actions/download-artifact@v6
113+
uses: actions/download-artifact@v7
114114
with:
115115
name: goreleaser-dist-temp
116116
path: dist
@@ -144,10 +144,10 @@ jobs:
144144
AWS_ENDPOINT_URL: https://object.storage.eu01.onstackit.cloud
145145
steps:
146146
- name: Checkout
147-
uses: actions/checkout@v5
147+
uses: actions/checkout@v6
148148

149149
- name: Download artifacts from workflow
150-
uses: actions/download-artifact@v6
150+
uses: actions/download-artifact@v7
151151
with:
152152
name: goreleaser-dist-temp
153153
path: dist

.github/workflows/renovate.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/stale.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
DAYS_BEFORE_PR_STALE: 7
1313
DAYS_BEFORE_PR_CLOSE: 7
14+
EXEMPT_PR_LABELS: "ignore-stale"
1415

1516
permissions:
1617
issues: write
@@ -30,6 +31,7 @@ jobs:
3031
close-pr-message: "This PR was closed automatically because it has been stalled for ${{ env.DAYS_BEFORE_PR_CLOSE }} days with no activity. Feel free to re-open it at any time."
3132
days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }}
3233
days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }}
34+
exempt-pr-labels: ${{ env.EXEMPT_PR_LABELS }}
3335
# never mark issues as stale or close them
3436
days-before-issue-stale: -1
3537
days-before-issue-close: -1

.goreleaser.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ builds:
5353
- cmd: sh -c 'go run main.go completion bash > ./dist/completions/stackit.bash'
5454
- cmd: sh -c 'go run main.go completion fish > ./dist/completions/stackit.fish'
5555

56+
- id: freebsd-builds
57+
env:
58+
- CGO_ENABLED=0
59+
goos:
60+
- freebsd
61+
goarch:
62+
- arm64
63+
- amd64
64+
binary: "stackit"
65+
5666
archives:
5767
- id: windows-archives
5868
ids:
@@ -61,6 +71,7 @@ archives:
6171
- ids:
6272
- linux-builds
6373
- macos-builds
74+
- freebsd-builds
6475
formats: [ 'tar.gz' ]
6576
files:
6677
- src: ./dist/completions/*

AUTHENTICATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This document describes how you can configure authentication for the STACKIT CLI
44

55
## Service account
66

7-
You can use a [service account](https://docs.stackit.cloud/stackit/en/service-accounts-134415819.html) to authenticate to the STACKIT CLI.
7+
You can use a [service account](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/) to authenticate to the STACKIT CLI.
88
The CLI will search for service account credentials similarly to the [STACKIT SDK](https://github.com/stackitcloud/stackit-sdk-go) and [STACKIT Terraform Provider](https://github.com/stackitcloud/terraform-provider-stackit), so if you have already set up your environment for those tools, you can just run:
99

1010
```bash
@@ -47,14 +47,14 @@ To use the key flow, you need to have a service account key, which must have an
4747

4848
When creating the service account key, a new RSA key-pair can be created automatically, which will be included in the service account key. This will make it much easier to configure the key flow authentication in the CLI, by just providing the service account key.
4949

50-
**Optionally**, you can provide your own private key when creating the service account key, which will then require you to also provide it explicitly to the CLI, additionally to the service account key. Check the STACKIT Knowledge Base for an [example of how to create your own key-pair](https://docs.stackit.cloud/stackit/en/usage-of-the-service-account-keys-in-stackit-175112464.html#UsageoftheserviceaccountkeysinSTACKIT-CreatinganRSAkey-pair).
50+
**Optionally**, you can provide your own private key when creating the service account key, which will then require you to also provide it explicitly to the CLI, additionally to the service account key. Check the STACKIT Docs for an [example of how to create your own key-pair](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/how-tos/manage-service-account-keys/).
5151

5252
To configure the key flow, follow this steps:
5353

5454
1. Create a service account key:
5555

5656
- In the CLI, run `stackit service-account key create --email <SERVICE_ACCOUNT_EMAIL>`
57-
- As an alternative, use the [STACKIT Portal](https://portal.stackit.cloud/): go to the `Service Accounts` tab, choose a `Service Account` and go to `Service Account Keys` to create a key. For more details, see [Create a service account key](https://docs.stackit.cloud/stackit/en/create-a-service-account-key-175112456.html)
57+
- As an alternative, use the [STACKIT Portal](https://portal.stackit.cloud/): go to the `Service Accounts` tab, choose a `Service Account` and go to `Service Account Keys` to create a key. For more details, see [Create a service account key](https://docs.stackit.cloud/platform/access-and-identity/service-accounts/how-tos/manage-service-account-keys/)
5858

5959
2. Save the content of the service account key by copying it and saving it in a JSON file.
6060

INSTALLATION.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,24 @@ You can also get the STACKIT CLI by compiling it from source or downloading a pr
215215
go run . <GROUP> <SUB-GROUP> <COMMAND> <ARGUMENT> <FLAGS>
216216
```
217217

218+
### FreeBSD
219+
220+
The STACKIT CLI can be installed through the [FreeBSD ports or packages](https://docs.freebsd.org/en/books/handbook/ports/).
221+
222+
To install the port:
223+
224+
```shell
225+
cd /usr/ports/sysutils/stackit/ && make install clean
226+
```
227+
228+
To add the package, run one of these commands:
229+
230+
```shell
231+
pkg install sysutils/stackit
232+
# OR
233+
pkg install stackit
234+
```
235+
218236
### Pre-compiled binary
219237

220238
1. Download the binary corresponding to your operating system and CPU architecture from our [Releases](https://github.com/stackitcloud/stackit-cli/releases) page

0 commit comments

Comments
 (0)