Skip to content

Commit d045e79

Browse files
Cr 17631 (#683)
* Use stable version of add-cluster when using a helm-runtime * fixed according to code review * ran codegen
1 parent 9c96245 commit d045e79

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.1.38
1+
VERSION=v0.1.39
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/cluster.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@ func runClusterAdd(ctx context.Context, opts *ClusterAddOptions) error {
184184
log.G(ctx).Info("Building \"add-cluster\" manifests")
185185

186186
csdpToken := cfConfig.GetCurrentContext().Token
187-
manifests, nameSuffix, err := createAddClusterManifests(opts, ingressUrl, server, csdpToken, version.String())
187+
addClusterRef := version.String()
188+
if runtime.InstallationType == model.InstallationTypeHelm {
189+
addClusterRef = "stable"
190+
}
191+
192+
manifests, nameSuffix, err := createAddClusterManifests(opts, ingressUrl, server, csdpToken, addClusterRef)
188193
if err != nil {
189194
return fmt.Errorf("failed getting add-cluster resources: %w", err)
190195
}

cmd/commands/runtime_install.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ func NewRuntimeInstallCommand() *cobra.Command {
303303
installationOpts.kubeconfig = cmd.Flag("kubeconfig").Value.String()
304304

305305
util.Die(cmd.Flags().MarkHidden("bypass-ingress-class-check"))
306-
util.Die(cmd.Flags().MarkHidden("access-mode"))
307306
util.Die(cmd.Flags().MarkHidden("tunnel-register-host"))
308307
util.Die(cmd.Flags().MarkHidden("tunnel-domain"))
309308
util.Die(cmd.Flags().MarkHidden("ips-allow-list"))

docs/commands/cli-v2_runtime_install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cli-v2 runtime install [runtime_name] [flags]
2828
### Options
2929

3030
```
31+
--access-mode string The access mode to the cluster, one of: ingress|tunnel
3132
--context string The name of the kubeconfig context to use
3233
--demo-resources Installs demo resources (default: true) (default true)
3334
--disable-rollback If true, will not perform installation rollback after a failed installation

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.38/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.39/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.38/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.39/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

0 commit comments

Comments
 (0)