Skip to content

Commit 36a5f0a

Browse files
DiogoFerraojoaopaletGokceGKKumm-Kaistackit-pipeline
authored
Merge main (#241)
* Add `argus grafana describe` command (#221) * Add `argus grafana config describe` command * Extend command to also show dashboard URL * Generate docs * Improve command descriptions * Adjust function names * Show initial Grafana credentials in output * Add example for showing password * Change to hide-password flag * Update GitHub actions (#223) * Implemnt util for Argus grafana configuration commands (#224) * Add `argus grafana single-sign-on` commands (#228) * Add argus grafana single-sign-on enable command * Add argus grafana single-sign-on disable command * Update docs * Register disable command and update docs * Improvements after review * Add repology packaging status badge to INSTALLATION docs (#215) * Add argus grafana `public-read-access` commands (#229) * Copy files from single sign-on * Adaptations for the public-read-access commands * Update docs * Improvements after review * Move instance ID to argument * Adapt examples * Change config handling: only create config file & directory if needed (#214) * Change config handling: only create config file & directory if needed * Changes from code review * Fix config read * correctly handle f.Close error * chore(deps): update renovatebot/github-action action to v40.1.9 (#225) Co-authored-by: Renovate Bot <[email protected]> * fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.13.0 (#226) Co-authored-by: Renovate Bot <[email protected]> * Improvements for argus grafana commands (#230) * Add debug error logs (#217) * add error debug logs to clients * add error debug logs to refreshToken * add error debug logs to label fetching * Update internal/pkg/services/argus/client/client.go Co-authored-by: Vicente Pinto <[email protected]> * Update internal/pkg/services/argus/client/client.go Co-authored-by: Vicente Pinto <[email protected]> * add error debug logs to flag conversions * add printer to argus grafana commands * add debug log to getBearerToken function * fix debug messages on clients * Update internal/pkg/flags/flag_to_value.go Co-authored-by: Vicente Pinto <[email protected]> * remove obsolete err from the debug messages * make printer first parameter * add printer to new argus commands * Update internal/pkg/auth/user_token_flow.go Co-authored-by: Vicente Pinto <[email protected]> * Update internal/cmd/root.go Co-authored-by: Vicente Pinto <[email protected]> * fix linting problem * add string formatting to the printer debug function * set source in log handler to false --------- Co-authored-by: Vicente Pinto <[email protected]> * change order of debug and error logs (#232) * Output format none (#234) * Output format none * Add unit test, move const to print pkg * Switch usage of const * Signature (#237) * update docs for output format none addition (#239) * merge main * add error level debug logs to scrape config commands --------- Co-authored-by: João Palet <[email protected]> Co-authored-by: GokceGK <[email protected]> Co-authored-by: Kumm-Kai <[email protected]> Co-authored-by: stackit-pipeline <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Vicente Pinto <[email protected]>
1 parent 71d51c0 commit 36a5f0a

File tree

593 files changed

+4564
-1522
lines changed

Some content is hidden

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

593 files changed

+4564
-1522
lines changed

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
- name: Self-hosted Renovate
16-
uses: renovatebot/[email protected].0
16+
uses: renovatebot/[email protected].9
1717
with:
1818
configurationFile: .github/renovate.json
1919
token: ${{ secrets.RENOVATE_TOKEN }}

INSTALLATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Package managers
44

5+
[![Packaging status](https://repology.org/badge/vertical-allrepos/stackit-cli.svg?columns=3)](https://repology.org/project/stackit-cli/versions)
6+
57
### macOS
68

79
The STACKIT CLI can be installed through the [Homebrew](https://brew.sh/) package manager.

docs/stackit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ stackit [flags]
1818
-y, --assume-yes If set, skips all confirmation prompts
1919
--async If set, runs the command asynchronously
2020
-h, --help Help for "stackit"
21-
-o, --output-format string Output format, one of ["json" "pretty"]
21+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
2222
-p, --project-id string Project ID
2323
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
2424
-v, --version Show "stackit" version

docs/stackit_argus.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ stackit argus [flags]
2121
```
2222
-y, --assume-yes If set, skips all confirmation prompts
2323
--async If set, runs the command asynchronously
24-
-o, --output-format string Output format, one of ["json" "pretty"]
24+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
2525
-p, --project-id string Project ID
2626
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
2727
```
2828

2929
### SEE ALSO
3030

3131
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
32+
* [stackit argus grafana](./stackit_argus_grafana.md) - Provides functionality for the Grafana configuration of Argus instances
3233
* [stackit argus instance](./stackit_argus_instance.md) - Provides functionality for Argus instances
3334
* [stackit argus plans](./stackit_argus_plans.md) - Lists all Argus service plans
3435
* [stackit argus scrape-config](./stackit_argus_scrape-config.md) - Provides functionality for scrape configurations in Argus

docs/stackit_argus_grafana.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## stackit argus grafana
2+
3+
Provides functionality for the Grafana configuration of Argus instances
4+
5+
### Synopsis
6+
7+
Provides functionality for the Grafana configuration of Argus instances.
8+
9+
```
10+
stackit argus grafana [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit argus grafana"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
25+
-p, --project-id string Project ID
26+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
27+
```
28+
29+
### SEE ALSO
30+
31+
* [stackit argus](./stackit_argus.md) - Provides functionality for Argus
32+
* [stackit argus grafana describe](./stackit_argus_grafana_describe.md) - Shows details of the Grafana configuration of an Argus instance
33+
* [stackit argus grafana public-read-access](./stackit_argus_grafana_public-read-access.md) - Enable or disable public read access for Grafana in Argus instances
34+
* [stackit argus grafana single-sign-on](./stackit_argus_grafana_single-sign-on.md) - Enable or disable single sign-on for Grafana in Argus instances
35+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## stackit argus grafana describe
2+
3+
Shows details of the Grafana configuration of an Argus instance
4+
5+
### Synopsis
6+
7+
Shows details of the Grafana configuration of an Argus instance.
8+
The Grafana dashboard URL and initial credentials (admin user and password) will be shown in the "pretty" output format. These credentials are only valid for first login. Please change the password after first login. After changing, the initial password is no longer valid.
9+
The initial password is shown by default, if you want to hide it use the "--hide-password" flag.
10+
11+
```
12+
stackit argus grafana describe INSTANCE_ID [flags]
13+
```
14+
15+
### Examples
16+
17+
```
18+
Get details of the Grafana configuration of an Argus instance with ID "xxx"
19+
$ stackit argus credentials describe xxx
20+
21+
Get details of the Grafana configuration of an Argus instance with ID "xxx" in a table format
22+
$ stackit argus credentials describe xxx --output-format pretty
23+
24+
Get details of the Grafana configuration of an Argus instance with ID "xxx" and hide the initial admin password
25+
$ stackit argus credentials describe xxx --output-format pretty --hide-password
26+
```
27+
28+
### Options
29+
30+
```
31+
-h, --help Help for "stackit argus grafana describe"
32+
--hide-password Show the initial admin password in the "pretty" output format
33+
```
34+
35+
### Options inherited from parent commands
36+
37+
```
38+
-y, --assume-yes If set, skips all confirmation prompts
39+
--async If set, runs the command asynchronously
40+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
41+
-p, --project-id string Project ID
42+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
43+
```
44+
45+
### SEE ALSO
46+
47+
* [stackit argus grafana](./stackit_argus_grafana.md) - Provides functionality for the Grafana configuration of Argus instances
48+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## stackit argus grafana public-read-access
2+
3+
Enable or disable public read access for Grafana in Argus instances
4+
5+
### Synopsis
6+
7+
Enable or disable public read access for Grafana in Argus instances.
8+
When enabled, anyone can access the Grafana dashboards of the instance without logging in. Otherwise, a login is required.
9+
10+
```
11+
stackit argus grafana public-read-access [flags]
12+
```
13+
14+
### Options
15+
16+
```
17+
-h, --help Help for "stackit argus grafana public-read-access"
18+
```
19+
20+
### Options inherited from parent commands
21+
22+
```
23+
-y, --assume-yes If set, skips all confirmation prompts
24+
--async If set, runs the command asynchronously
25+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
26+
-p, --project-id string Project ID
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit argus grafana](./stackit_argus_grafana.md) - Provides functionality for the Grafana configuration of Argus instances
33+
* [stackit argus grafana public-read-access disable](./stackit_argus_grafana_public-read-access_disable.md) - Disables public read access for Grafana on Argus instances
34+
* [stackit argus grafana public-read-access enable](./stackit_argus_grafana_public-read-access_enable.md) - Enables public read access for Grafana on Argus instances
35+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit argus grafana public-read-access disable
2+
3+
Disables public read access for Grafana on Argus instances
4+
5+
### Synopsis
6+
7+
Disables public read access for Grafana on Argus instances.
8+
When disabled, a login is required to access the Grafana dashboards of the instance. Otherwise, anyone can access the dashboards.
9+
10+
```
11+
stackit argus grafana public-read-access disable INSTANCE_ID [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Disable public read access for Grafana on an Argus instance with ID "xxx"
18+
$ stackit argus grafana public-read-access disable xxx
19+
```
20+
21+
### Options
22+
23+
```
24+
-h, --help Help for "stackit argus grafana public-read-access disable"
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit argus grafana public-read-access](./stackit_argus_grafana_public-read-access.md) - Enable or disable public read access for Grafana in Argus instances
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit argus grafana public-read-access enable
2+
3+
Enables public read access for Grafana on Argus instances
4+
5+
### Synopsis
6+
7+
Enables public read access for Grafana on Argus instances.
8+
When enabled, anyone can access the Grafana dashboards of the instance without logging in. Otherwise, a login is required.
9+
10+
```
11+
stackit argus grafana public-read-access enable INSTANCE_ID [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Enable public read access for Grafana on an Argus instance with ID "xxx"
18+
$ stackit argus grafana public-read-access enable xxx
19+
```
20+
21+
### Options
22+
23+
```
24+
-h, --help Help for "stackit argus grafana public-read-access enable"
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit argus grafana public-read-access](./stackit_argus_grafana_public-read-access.md) - Enable or disable public read access for Grafana in Argus instances
40+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## stackit argus grafana single-sign-on
2+
3+
Enable or disable single sign-on for Grafana in Argus instances
4+
5+
### Synopsis
6+
7+
Enable or disable single sign-on for Grafana in Argus instances.
8+
When enabled for an instance, overwrites the generic OAuth2 authentication and configures STACKIT single sign-on for that instance.
9+
10+
```
11+
stackit argus grafana single-sign-on [flags]
12+
```
13+
14+
### Options
15+
16+
```
17+
-h, --help Help for "stackit argus grafana single-sign-on"
18+
```
19+
20+
### Options inherited from parent commands
21+
22+
```
23+
-y, --assume-yes If set, skips all confirmation prompts
24+
--async If set, runs the command asynchronously
25+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
26+
-p, --project-id string Project ID
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit argus grafana](./stackit_argus_grafana.md) - Provides functionality for the Grafana configuration of Argus instances
33+
* [stackit argus grafana single-sign-on disable](./stackit_argus_grafana_single-sign-on_disable.md) - Disables single sign-on for Grafana on Argus instances
34+
* [stackit argus grafana single-sign-on enable](./stackit_argus_grafana_single-sign-on_enable.md) - Enables single sign-on for Grafana on Argus instances
35+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit argus grafana single-sign-on disable
2+
3+
Disables single sign-on for Grafana on Argus instances
4+
5+
### Synopsis
6+
7+
Disables single sign-on for Grafana on Argus instances.
8+
When disabled for an instance, the generic OAuth2 authentication is used for that instance.
9+
10+
```
11+
stackit argus grafana single-sign-on disable INSTANCE_ID [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Disable single sign-on for Grafana on an Argus instance with ID "xxx"
18+
$ stackit argus grafana single-sign-on disable xxx
19+
```
20+
21+
### Options
22+
23+
```
24+
-h, --help Help for "stackit argus grafana single-sign-on disable"
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit argus grafana single-sign-on](./stackit_argus_grafana_single-sign-on.md) - Enable or disable single sign-on for Grafana in Argus instances
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit argus grafana single-sign-on enable
2+
3+
Enables single sign-on for Grafana on Argus instances
4+
5+
### Synopsis
6+
7+
Enables single sign-on for Grafana on Argus instances.
8+
When enabled for an instance, overwrites the generic OAuth2 authentication and configures STACKIT single sign-on for that instance.
9+
10+
```
11+
stackit argus grafana single-sign-on enable INSTANCE_ID [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Enable single sign-on for Grafana on an Argus instance with ID "xxx"
18+
$ stackit argus grafana single-sign-on enable xxx
19+
```
20+
21+
### Options
22+
23+
```
24+
-h, --help Help for "stackit argus grafana single-sign-on enable"
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit argus grafana single-sign-on](./stackit_argus_grafana_single-sign-on.md) - Enable or disable single sign-on for Grafana in Argus instances
40+

docs/stackit_argus_instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stackit argus instance [flags]
2121
```
2222
-y, --assume-yes If set, skips all confirmation prompts
2323
--async If set, runs the command asynchronously
24-
-o, --output-format string Output format, one of ["json" "pretty"]
24+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
2525
-p, --project-id string Project ID
2626
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
2727
```

docs/stackit_argus_instance_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ stackit argus instance create [flags]
3434
```
3535
-y, --assume-yes If set, skips all confirmation prompts
3636
--async If set, runs the command asynchronously
37-
-o, --output-format string Output format, one of ["json" "pretty"]
37+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
3838
-p, --project-id string Project ID
3939
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
4040
```

docs/stackit_argus_instance_delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ stackit argus instance delete INSTANCE_ID [flags]
2828
```
2929
-y, --assume-yes If set, skips all confirmation prompts
3030
--async If set, runs the command asynchronously
31-
-o, --output-format string Output format, one of ["json" "pretty"]
31+
-o, --output-format string Output format, one of ["json" "pretty" "none"]
3232
-p, --project-id string Project ID
3333
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
3434
```

0 commit comments

Comments
 (0)