Skip to content

Commit 37b6dca

Browse files
authored
Merge pull request #28 from intility/update-dependencies
chore: update dependencies
2 parents 5384eaa + 9422643 commit 37b6dca

File tree

4 files changed

+181
-166
lines changed

4 files changed

+181
-166
lines changed

.github/workflows/go.yml

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,49 @@ on:
88
types: [published]
99
workflow_dispatch:
1010

11-
1211
permissions:
1312
contents: write
1413

1514
jobs:
1615
build-test-release:
1716
runs-on: ubuntu-latest
1817
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Go
22-
uses: actions/setup-go@v4
23-
with:
24-
go-version: '1.22'
25-
26-
- name: Build
27-
run: go build -o bin/indev cmd/indev/main.go
28-
29-
- name: Test
30-
run: go test ./...
31-
32-
- name: Generate GitHub app token for Homebrew Tap App
33-
id: generate-app-token
34-
uses: actions/create-github-app-token@v1
35-
with:
36-
app-id: ${{ vars.HOMEBREW_TAP_APP_ID }}
37-
private-key: ${{ secrets.HOMEBREW_TAP_APP_PRIVATE_KEY }}
38-
owner: intility
39-
repositories: homebrew-tap
40-
41-
- name: GoReleaser Action
42-
uses: goreleaser/goreleaser-action@v5.1.0
43-
with:
44-
args: release --clean
45-
version: 2
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
TAP_REPO_GITHUB_TOKEN: ${{ steps.generate-app-token.outputs.token }}
49-
DOWNLOADER_GITHUB_TOKEN: ${{ secrets.DOWNLOADER_GITHUB_TOKEN }}
50-
OTLP_ENDPOINT: ${{ vars.OTLP_ENDPOINT }}
51-
OTLP_TOKEN: ${{ vars.OTLP_TOKEN }}
52-
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
53-
AUTH_AUDIENCE: ${{ vars.AUTH_AUDIENCE }}
54-
AUTH_AUTHORITY: ${{ vars.AUTH_AUTHORITY }}
55-
AUTH_CLIENT_ID: ${{ vars.AUTH_CLIENT_ID }}
56-
AUTH_REDIRECT_URI: ${{ vars.AUTH_REDIRECT_URI }}
57-
PLATFORM_BASE_URI: ${{ vars.PLATFORM_BASE_URI }}
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: "1.24.2"
24+
25+
- name: Build
26+
run: go build -o bin/indev cmd/indev/main.go
27+
28+
- name: Test
29+
run: go test ./...
30+
31+
- name: Generate GitHub app token for Homebrew Tap App
32+
id: generate-app-token
33+
uses: actions/create-github-app-token@v1
34+
with:
35+
app-id: ${{ vars.HOMEBREW_TAP_APP_ID }}
36+
private-key: ${{ secrets.HOMEBREW_TAP_APP_PRIVATE_KEY }}
37+
owner: intility
38+
repositories: homebrew-tap
39+
40+
- name: GoReleaser Action
41+
uses: goreleaser/goreleaser-action@v5.1.0
42+
with:
43+
args: release --clean
44+
version: 2
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
TAP_REPO_GITHUB_TOKEN: ${{ steps.generate-app-token.outputs.token }}
48+
DOWNLOADER_GITHUB_TOKEN: ${{ secrets.DOWNLOADER_GITHUB_TOKEN }}
49+
OTLP_ENDPOINT: ${{ vars.OTLP_ENDPOINT }}
50+
OTLP_TOKEN: ${{ vars.OTLP_TOKEN }}
51+
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
52+
AUTH_AUDIENCE: ${{ vars.AUTH_AUDIENCE }}
53+
AUTH_AUTHORITY: ${{ vars.AUTH_AUTHORITY }}
54+
AUTH_CLIENT_ID: ${{ vars.AUTH_CLIENT_ID }}
55+
AUTH_REDIRECT_URI: ${{ vars.AUTH_REDIRECT_URI }}
56+
PLATFORM_BASE_URI: ${{ vars.PLATFORM_BASE_URI }}

README.md

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Developer Platform CLI
32

43
`indev` is a command-line interface (CLI) tool designed for managing Intility Developer Platform resources. With `indev`, you can perform a variety of operations such as creating and deleting clusters, deploying and managing applications, and more. It is built with simplicity and ease of use in mind, making Kubernetes operations more accessible.
@@ -14,73 +13,79 @@
1413
## Getting Started
1514

1615
Before you begin, ensure that you have the following installed:
16+
1717
- Docker
1818
- `kubectl` command-line tool
19-
- Go (1.22.1 or higher)
19+
- Go (1.24.2 or higher)
2020

2121
### Installation
2222

2323
To install `indev`, follow these steps:
2424

2525
1. Clone the repository:
2626

27-
```sh
28-
git clone git@gitlab.intility.com:developer-infrastructure/platform-2.0/indev.git
29-
cd indev
30-
```
27+
```sh
28+
git clone git@gitlab.intility.com:developer-infrastructure/platform-2.0/indev.git
29+
cd indev
30+
```
3131

3232
2. Build from source:
3333

34-
```sh
35-
go build -o indev main.go
36-
```
34+
```sh
35+
go build -o indev main.go
36+
```
3737

3838
3. (Optional) Move the binary to a location in your PATH:
3939

40-
```sh
41-
mv indev /usr/local/bin/indev
42-
```
40+
```sh
41+
mv indev /usr/local/bin/indev
42+
```
4343

4444
### Usage
4545

4646
Here are some of the commonly used `indev` commands:
4747

4848
- Create a cluster:
49-
```sh
50-
indev cluster create
51-
```
49+
50+
```sh
51+
indev cluster create
52+
```
5253

5354
- List clusters:
54-
```sh
55-
indev cluster list
56-
```
55+
56+
```sh
57+
indev cluster list
58+
```
5759

5860
- Delete a cluster:
59-
```sh
60-
indev cluster delete --name <cluster-name>
61-
```
61+
62+
```sh
63+
indev cluster delete --name <cluster-name>
64+
```
6265

6366
- Deploy an application:
64-
```sh
65-
indev app deploy --path <app-manifest-path>
66-
```
67+
68+
```sh
69+
indev app deploy --path <app-manifest-path>
70+
```
6771

6872
- Delete an application:
69-
```sh
70-
indev app delete --path <app-manifest-path>
71-
```
73+
74+
```sh
75+
indev app delete --path <app-manifest-path>
76+
```
7277

7378
- Forward a port:
74-
```sh
75-
indev app port-forward --deployment <deployment-name>
76-
```
79+
```sh
80+
indev app port-forward --deployment <deployment-name>
81+
```
7782

7883
For a full list of command and options, run `indev --help`.
7984

8085
## Telemetry
8186

82-
`indev` includes a telemetry feature that helps improve the tool by collecting anonymous usage data.
83-
The telemetry system gathers information such as command usage, performance metrics, and error reports.
87+
`indev` includes a telemetry feature that helps improve the tool by collecting anonymous usage data.
88+
The telemetry system gathers information such as command usage, performance metrics, and error reports.
8489
This data is crucial for identifying common issues, understanding user behavior, and prioritizing new features.
8590

8691
### What We Collect
@@ -91,14 +96,14 @@ This data is crucial for identifying common issues, understanding user behavior,
9196

9297
### Anonymity and Privacy
9398

94-
We are fully committed to ensuring user privacy and anonymity.
95-
The telemetry system only collects non-personally identifiable information.
99+
We are fully committed to ensuring user privacy and anonymity.
100+
The telemetry system only collects non-personally identifiable information.
96101
Additionally, data is stored securely and in compliance with relevant data protection regulations.
97102

98103
### Opting Out
99104

100-
Telemetry is enabled by default to help us improve `indev`. However, respecting user choice is paramount,
101-
and you can opt-out of telemetry at any time. To disable telemetry, set the environment variable
105+
Telemetry is enabled by default to help us improve `indev`. However, respecting user choice is paramount,
106+
and you can opt-out of telemetry at any time. To disable telemetry, set the environment variable
102107
`DO_NOT_TRACK` to `1`.
103108

104109
## Contributing

go.mod

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
module github.com/intility/indev
22

3-
go 1.22.7
4-
5-
toolchain go1.23.4
3+
go 1.24.2
64

75
require (
8-
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2
6+
github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2
97
github.com/adrg/xdg v0.5.3
10-
github.com/charmbracelet/bubbles v0.20.0
11-
github.com/charmbracelet/bubbletea v1.2.4
12-
github.com/charmbracelet/lipgloss v1.0.0
8+
github.com/charmbracelet/bubbles v0.21.0
9+
github.com/charmbracelet/bubbletea v1.3.4
10+
github.com/charmbracelet/lipgloss v1.1.0
1311
github.com/google/uuid v1.6.0
1412
github.com/matishsiao/goInfo v0.0.0-20241216093258-66a9250504d6
15-
github.com/spf13/afero v1.12.0
16-
github.com/spf13/cobra v1.8.1
13+
github.com/spf13/afero v1.14.0
14+
github.com/spf13/cobra v1.9.1
1715
github.com/stretchr/testify v1.10.0
18-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0
19-
go.opentelemetry.io/otel v1.33.0
20-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.33.0
21-
go.opentelemetry.io/otel/sdk v1.33.0
22-
go.opentelemetry.io/otel/sdk/metric v1.33.0
23-
go.opentelemetry.io/otel/trace v1.33.0
16+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0
17+
go.opentelemetry.io/otel v1.35.0
18+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0
19+
go.opentelemetry.io/otel/sdk v1.35.0
20+
go.opentelemetry.io/otel/sdk/metric v1.35.0
21+
go.opentelemetry.io/otel/trace v1.35.0
2422
go.opentelemetry.io/proto/otlp v1.5.0
25-
golang.org/x/term v0.28.0
26-
google.golang.org/protobuf v1.36.2
23+
golang.org/x/term v0.31.0
24+
google.golang.org/protobuf v1.36.6
2725
gopkg.in/yaml.v3 v3.0.1
2826
)
2927

3028
require (
3129
github.com/atotto/clipboard v0.1.4 // indirect
3230
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
3331
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
34-
github.com/charmbracelet/x/ansi v0.6.0 // indirect
32+
github.com/charmbracelet/colorprofile v0.3.0 // indirect
33+
github.com/charmbracelet/x/ansi v0.8.0 // indirect
34+
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
3535
github.com/charmbracelet/x/term v0.2.1 // indirect
3636
github.com/davecgh/go-spew v1.1.1 // indirect
3737
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
3838
github.com/felixge/httpsnoop v1.0.4 // indirect
3939
github.com/go-logr/logr v1.4.2 // indirect
4040
github.com/go-logr/stdr v1.2.2 // indirect
41-
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
42-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect
41+
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
42+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
4343
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4444
github.com/kylelemons/godebug v1.1.0 // indirect
4545
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
@@ -48,20 +48,21 @@ require (
4848
github.com/mattn/go-runewidth v0.0.16 // indirect
4949
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
5050
github.com/muesli/cancelreader v0.2.2 // indirect
51-
github.com/muesli/termenv v0.15.2 // indirect
51+
github.com/muesli/termenv v0.16.0 // indirect
5252
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
5353
github.com/pmezard/go-difflib v1.0.0 // indirect
5454
github.com/rivo/uniseg v0.4.7 // indirect
55-
github.com/spf13/pflag v1.0.5 // indirect
55+
github.com/spf13/pflag v1.0.6 // indirect
5656
github.com/stretchr/objx v0.5.2 // indirect
57+
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
5758
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
58-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect
59-
go.opentelemetry.io/otel/metric v1.33.0 // indirect
60-
golang.org/x/net v0.34.0 // indirect
61-
golang.org/x/sync v0.10.0 // indirect
62-
golang.org/x/sys v0.29.0 // indirect
63-
golang.org/x/text v0.21.0 // indirect
64-
google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 // indirect
65-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 // indirect
66-
google.golang.org/grpc v1.69.2 // indirect
59+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 // indirect
60+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
61+
golang.org/x/net v0.39.0 // indirect
62+
golang.org/x/sync v0.13.0 // indirect
63+
golang.org/x/sys v0.32.0 // indirect
64+
golang.org/x/text v0.24.0 // indirect
65+
google.golang.org/genproto/googleapis/api v0.0.0-20250409194420-de1ac958c67a // indirect
66+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250409194420-de1ac958c67a // indirect
67+
google.golang.org/grpc v1.71.1 // indirect
6768
)

0 commit comments

Comments
 (0)