We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nsc expose
1 parent 0269ac7 commit 52caba2Copy full SHA for 52caba2
internal/cli/cmd/cluster/expose.go
@@ -75,6 +75,13 @@ func newExposeContainerCmd(use string, hidden bool) *cobra.Command {
75
return fnerrors.New("only one of --all or --container may be specified")
76
}
77
78
+ if hidden && *output == "plain" {
79
+ out := console.Warnings(ctx)
80
+ fmt.Fprintf(out, "`nsc %s` is deprecated. For backwards compatibility it behaves as `nsc expose container [cluster-id]`.\n", use)
81
+ fmt.Fprintln(out, "To expose an exported port on a running container `nsc expose container [cluster-id].")
82
+ fmt.Fprintln(out, "To exponse a Kubernentes Load Balancer use `nsc expose kubernetes [cluster-id]`.")
83
+ }
84
+
85
cluster, _, err := SelectRunningCluster(ctx, args)
86
if err != nil {
87
return err
0 commit comments