|
44 | 44 | func New(streams genericclioptions.IOStreams) (*cobra.Command, error) { |
45 | 45 | opts := plugin.NewBindAPIServiceOptions(streams) |
46 | 46 | cmd := &cobra.Command{ |
47 | | - Use: "apiservice https://<url-to-a-APIServiceExportRequest>|-f <file-to-a-APIBindingRequest>", |
48 | | - Short: "Bind to a remote API service", |
49 | | - Example: help.Examplesf(bindAPIServiceExampleUses, "kubectl bind"), |
| 47 | + Use: "apiservice https://<url-to-a-APIServiceExportRequest>|-f <file-to-a-APIBindingRequest>", |
| 48 | + Short: "Bind to a remote API service", |
| 49 | + Long: help.Doc(`Bind to a remote API service by creating an APIServiceExportRequest. |
| 50 | +
|
| 51 | +This command allows you to bind remote services into your cluster by either: |
| 52 | +
|
| 53 | +- Providing a URL to an APIServiceExportRequest resource |
| 54 | +- Providing a file containing an APIServiceExportRequest manifest |
| 55 | +- Using a template name to interactively create the binding |
| 56 | +
|
| 57 | +The command will authenticate with the remote service provider, create the necessary |
| 58 | +APIServiceExportRequest, and deploy a konnector to establish the connection between |
| 59 | +your cluster and the remote service.`), |
| 60 | + Example: fmt.Sprintf(bindAPIServiceExampleUses, "kubectl bind"), |
50 | 61 | SilenceUsage: true, |
51 | 62 | RunE: func(cmd *cobra.Command, args []string) error { |
52 | 63 | if err := logsv1.ValidateAndApply(opts.Logs, nil); err != nil { |
|
0 commit comments