Skip to content
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Cloud Platform tools (CLI)
FROM golang:1.24.3-bookworm AS cli_builder
FROM golang:1.25.1-bookworm AS cli_builder

ENV \
CGO_ENABLED=0 \
Expand Down
32 changes: 18 additions & 14 deletions doc/cloud-platform_environment_apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,24 @@ $ cloud-platform environment apply -n <namespace>
### Options

```
--all-namespaces Apply all namespaces with -all-namespaces
--batch-apply-index int Starting index for Apply to a batch of namespaces
--batch-apply-size int Number of namespaces to apply in a batch
--build-url string The concourse apply build url
--cluster string cluster context from kubeconfig file
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--enable-apply-skip Enable skipping apply for a namespace
--github-token string Personal access Token from Github
-h, --help help for apply
--is-apply-pipeline is this running in the apply pipelines
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the apply
--pr-number int Pull request ID or number to which you want to perform the apply
--redact Redact the terraform output before printing (default true)
--all-namespaces Apply all namespaces with -all-namespaces
--batch-apply-index int Starting index for Apply to a batch of namespaces
--batch-apply-size int Number of namespaces to apply in a batch
--build-url string The concourse apply build url
--cluster string cluster context from kubeconfig file
-c, --cluster-name string [optional] Cluster name (default "live")
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--enable-apply-skip Enable skipping apply for a namespace
--github-appid string App ID
--github-installation-id string Installation ID
--github-pem-file string PEM file
--github-token string Personal access Token from Github
-h, --help help for apply
--is-apply-pipeline is this running in the apply pipelines
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the apply
--pr-number int Pull request ID or number to which you want to perform the apply
--redact Redact the terraform output before printing (default true)
```

### Options inherited from parent commands
Expand Down
22 changes: 13 additions & 9 deletions doc/cloud-platform_environment_destroy.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ $ cloud-platform environment destroy -n <namespace>
### Options

```
--cluster string cluster context from kubeconfig file
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--github-token string Personal access Token from Github
-h, --help help for destroy
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the destroy
--pr-number int Pull request ID or number to which you want to perform the destroy
--redact Redact the terraform output before printing (default true)
--skip-prod-destroy skip prod namespaces from destroy namespace (default true)
--cluster string cluster context from kubeconfig file
-c, --cluster-name string [optional] Cluster name (default "live")
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--github-appid string App ID
--github-installation-id string Installation ID
--github-pem-file string PEM file
--github-token string Personal access Token from Github
-h, --help help for destroy
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the destroy
--pr-number int Pull request ID or number to which you want to perform the destroy
--redact Redact the terraform output before printing (default true)
--skip-prod-destroy skip prod namespaces from destroy namespace (default true)
```

### Options inherited from parent commands
Expand Down
20 changes: 12 additions & 8 deletions doc/cloud-platform_environment_plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ $ cloud-platform environment plan
### Options

```
--cluster string cluster context from kubeconfig file
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--github-token string Personal access Token from Github
-h, --help help for plan
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the plan
--pr-number int Pull request ID or number to which you want to perform the plan
--redact Redact the terraform output before printing (default true)
--cluster string cluster context from kubeconfig file
-c, --cluster-name string [optional] Cluster name (default "live")
--clusterdir string folder name under namespaces/ inside cloud-platform-environments repo referring to full cluster name
--github-appid string App ID
--github-installation-id string Installation ID
--github-pem-file string PEM file
--github-token string Personal access Token from Github
-h, --help help for plan
--kubecfg string path to kubeconfig file (default "/home/runner/.kube/config")
-n, --namespace string Namespace which you want to perform the plan
--pr-number int Pull request ID or number to which you want to perform the plan
--redact Redact the terraform output before printing (default true)
```

### Options inherited from parent commands
Expand Down
24 changes: 13 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/ministryofjustice/cloud-platform-cli

go 1.23
go 1.25

require (
github.com/MakeNowJust/heredoc v1.0.0
github.com/agext/levenshtein v1.2.3 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/google/go-cmp v0.6.0
github.com/google/go-cmp v0.7.0
github.com/gookit/color v1.5.4
github.com/hashicorp/hcl/v2 v2.19.1
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
Expand All @@ -19,10 +19,10 @@ require (
github.com/spf13/viper v1.18.2
github.com/zclconf/go-cty v1.14.1
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/mod v0.14.0
golang.org/x/mod v0.25.0
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/text v0.26.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0
)
Expand All @@ -32,21 +32,22 @@ require (
github.com/deckarep/golang-set/v2 v2.6.0
github.com/dlclark/regexp2 v1.10.0
github.com/google/go-cmdtest v0.4.0
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-github/v74 v74.0.0
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/hc-install v0.6.2
github.com/hashicorp/terraform-exec v0.20.0
github.com/hashicorp/terraform-json v0.21.0
github.com/jedib0t/go-pretty/v6 v6.5.3
github.com/jferrl/go-githubauth v1.3.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/migueleliasweb/go-github-mock v0.0.22
github.com/migueleliasweb/go-github-mock v1.4.0
github.com/ministryofjustice/cloud-platform-environments v1.2.1-0.20230712165212-61f4971d3baa
github.com/ministryofjustice/cloud-platform-go-library v0.0.0-20220803122921-1ca1153b1730
github.com/rs/zerolog v1.31.0
github.com/shurcooL/githubv4 v0.0.0-20220922232305-70b4d362a8cb
github.com/slack-go/slack v0.12.5
github.com/stretchr/testify v1.8.4
golang.org/x/oauth2 v0.16.0
golang.org/x/oauth2 v0.30.0
k8s.io/api v0.26.3
k8s.io/apimachinery v0.26.3
k8s.io/client-go v0.26.3
Expand Down Expand Up @@ -74,16 +75,18 @@ require (
github.com/go-openapi/swag v0.21.1 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-github/v56 v56.0.0 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-github/v73 v73.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/renameio v0.1.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
Expand Down Expand Up @@ -133,8 +136,7 @@ require (
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/term v0.17.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
golang.org/x/time v0.12.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading