Skip to content

Commit f75506b

Browse files
add example of multi annotations usage (#678)
* add example of multi annotations usage * ran codegen
1 parent 38633ba commit f75506b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
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.35
1+
VERSION=v0.1.36
22

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

cmd/commands/runtime_install.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ func NewRuntimeInstallCommand() *cobra.Command {
271271
cmd.Flags().BoolVar(&installationOpts.DisableTelemetry, "disable-telemetry", false, "If true, will disable the analytics reporting for the installation process")
272272
cmd.Flags().BoolVar(&store.Get().SetDefaultResources, "set-default-resources", false, "If true, will set default requests and limits on all of the runtime components")
273273
cmd.Flags().BoolVar(&installationOpts.FromRepo, "from-repo", false, "Installs a runtime from an existing repo. Used for recovery after cluster failure")
274-
cmd.Flags().StringToStringVar(&installationOpts.NamespaceLabels, "namespace-labels", nil, "Optional labels that will be set on the namespace resource. (e.g. \"key1=value1,key2=value2\"")
275-
cmd.Flags().StringToStringVar(&installationOpts.InternalIngressAnnotation, "internal-ingress-annotation", nil, "Add annotations to the internal ingress")
276-
cmd.Flags().StringToStringVar(&installationOpts.ExternalIngressAnnotation, "external-ingress-annotation", nil, "Add annotations to the external ingress")
274+
cmd.Flags().StringToStringVar(&installationOpts.NamespaceLabels, "namespace-labels", nil, "Optional labels that will be set on the namespace resource. (e.g. \"key1=value1,key2=value2\")")
275+
cmd.Flags().StringToStringVar(&installationOpts.InternalIngressAnnotation, "internal-ingress-annotation", nil, "Add annotations to the internal ingress. (e.g. \"key1=value1,key2=value2\")")
276+
cmd.Flags().StringToStringVar(&installationOpts.ExternalIngressAnnotation, "external-ingress-annotation", nil, "Add annotations to the external ingress. (e.g. \"key1=value1,key2=value2\")")
277277
cmd.Flags().StringVar(&installationOpts.runtimeDef, "runtime-def", "", "Install runtime from a specific manifest")
278278
cmd.Flags().StringVar(&accessMode, "access-mode", "", "The access mode to the cluster, one of: ingress|tunnel")
279279
cmd.Flags().StringVar(&installationOpts.TunnelRegisterHost, "tunnel-register-host", "register-tunnels.cf-cd.com", "The host name for registering a new tunnel")

docs/commands/cli-v2_runtime_install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cli-v2 runtime install [runtime_name] [flags]
3232
--demo-resources Installs demo resources (default: true) (default true)
3333
--disable-rollback If true, will not perform installation rollback after a failed installation
3434
--disable-telemetry If true, will disable the analytics reporting for the installation process
35-
--external-ingress-annotation stringToString Add annotations to the external ingress (default [])
35+
--external-ingress-annotation stringToString Add annotations to the external ingress. (e.g. "key1=value1,key2=value2") (default [])
3636
--from-repo Installs a runtime from an existing repo. Used for recovery after cluster failure
3737
--gateway-name string The gateway name
3838
--gateway-namespace string The namespace of the gateway
@@ -42,11 +42,11 @@ cli-v2 runtime install [runtime_name] [flags]
4242
-h, --help help for install
4343
--ingress-class string The ingress class name
4444
--ingress-host string The ingress host
45-
--internal-ingress-annotation stringToString Add annotations to the internal ingress (default [])
45+
--internal-ingress-annotation stringToString Add annotations to the internal ingress. (e.g. "key1=value1,key2=value2") (default [])
4646
--internal-ingress-host string The internal ingress host (by default the external ingress will be used for both internal and external traffic)
4747
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
4848
-n, --namespace string If present, the namespace scope for this CLI request
49-
--namespace-labels stringToString Optional labels that will be set on the namespace resource. (e.g. "key1=value1,key2=value2" (default [])
49+
--namespace-labels stringToString Optional labels that will be set on the namespace resource. (e.g. "key1=value1,key2=value2") (default [])
5050
--personal-git-token string The Personal git token for your user
5151
--personal-git-user string The Personal git user that match the token, required for bitbucket cloud
5252
--provider string The git provider, one of: azure|bitbucket|bitbucket-server|gitea|github|gitlab

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.35/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.36/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.35/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.36/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)