Skip to content

Commit

Permalink
Substitute wrong dash character
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Khouzam <[email protected]>
  • Loading branch information
marckhouzam committed Feb 28, 2025
1 parent cd34ef2 commit 99e21bf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/quickstart/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,13 +474,13 @@ To manually install the essentials plugin group.
To install latest version
```shell
tanzu plugin install all -group vmware-tanzucli/essentials
tanzu plugin install all --group vmware-tanzucli/essentials
```
To install specific version
```shell
tanzu plugin install all -group vmware-tanzucli/essentials:v1.0.0
tanzu plugin install all --group vmware-tanzucli/essentials:v1.0.0
```
## Installing and using the Tanzu CLI in internet-restricted environments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,9 @@ spec:
description: 'An App is a set of Kubernetes resources. These resources could
span any number of namespaces or could be cluster-wide (e.g. CRDs). An App
is represented in kapp-controller using a App CR. The App CR comprises of
three main sections: spec.fetch declare source for fetching configuration
and OCI images spec.template declare templating tool and values spec.deploy
declare deployment tool and any deploy specific configuration'
three main sections: spec.fetch - declare source for fetching configuration
and OCI images spec.template - declare templating tool and values spec.deploy
- declare deployment tool and any deploy specific configuration'
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand Down
4 changes: 2 additions & 2 deletions pkg/command/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ func createCtx(cmd *cobra.Command, args []string) (err error) {

func validateContextCreateFlagValues() error {
if contextTypeStr == string(configtypes.ContextTypeTanzu) && kubeConfig != "" {
return fmt.Errorf("the '-kubeconfig' flag is not applicable when creating a context of type 'tanzu'")
return fmt.Errorf("the '--kubeconfig' flag is not applicable when creating a context of type 'tanzu'")
}
if contextTypeStr == string(configtypes.ContextTypeTanzu) && kubeContext != "" {
return fmt.Errorf("the '-kubecontext' flag is not applicable when creating a context of type 'tanzu'")
return fmt.Errorf("the '--kubecontext' flag is not applicable when creating a context of type 'tanzu'")
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/command/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1995,5 +1995,5 @@ func TestCreateContextWithTanzuTypeAndKubeconfigFlags(t *testing.T) {
kubeConfig = "fake-kubeconfig"
err := createCtx(&cobra.Command{}, []string{})
assert.NotNil(t, err)
assert.EqualError(t, err, `the '-kubeconfig' flag is not applicable when creating a context of type 'tanzu'`)
assert.EqualError(t, err, `the '--kubeconfig' flag is not applicable when creating a context of type 'tanzu'`)
}

0 comments on commit 99e21bf

Please sign in to comment.