Skip to content

Commit 1af83ad

Browse files
authored
Update run bundle help (#5727)
* squash commits Signed-off-by: Bryce Palmer <[email protected]> * address review comments Signed-off-by: Bryce Palmer <[email protected]> * review updates Signed-off-by: Bryce Palmer <[email protected]>
1 parent d43225a commit 1af83ad

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
Update the `operator-sdk run bundle` command to have a more detailed
6+
help output, stating the intent of the command and that index-images
7+
passed via the `--index-image` flag should not already contain the bundle.
8+
9+
# kind is one of:
10+
# - addition
11+
# - change
12+
# - deprecation
13+
# - removal
14+
# - bugfix
15+
kind: "change"
16+
17+
# Is this a breaking change?
18+
breaking: false

internal/cmd/operator-sdk/run/bundle/cmd.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ func NewCmd(cfg *operator.Configuration) *cobra.Command {
3030
Use: "bundle <bundle-image>",
3131
Short: "Deploy an Operator in the bundle format with OLM",
3232
Long: `The single argument to this command is a bundle image, with the full registry path specified.
33-
If using a docker.io image, you must specify docker.io(/<namespace>)?/<bundle-image-name>:<tag>.`,
33+
If using a docker.io image, you must specify docker.io(/<namespace>)?/<bundle-image-name>:<tag>.
34+
35+
The main purpose of this command is to streamline running the bundle without having to provide an index image with the bundle already included.
36+
37+
The ` + "`--index-image`" + ` flag specifies an index image in which to inject the given bundle. It can be specified to resolve dependencies for a bundle.
38+
This is an optional flag which will default to ` + "`quay.io/operator-framework/opm:latest`." + `
39+
The index image provided should **NOT** already have the bundle.
40+
`,
3441
Args: cobra.ExactArgs(1),
3542
PreRunE: func(*cobra.Command, []string) error { return cfg.Load() },
3643
Run: func(cmd *cobra.Command, args []string) {

website/content/en/docs/cli/operator-sdk_run_bundle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Deploy an Operator in the bundle format with OLM
1010
The single argument to this command is a bundle image, with the full registry path specified.
1111
If using a docker.io image, you must specify docker.io(/&lt;namespace&gt;)?/&lt;bundle-image-name&gt;:&lt;tag&gt;.
1212

13+
The main purpose of this command is to streamline running the bundle without having to provide an index image with the bundle already included.
14+
15+
The `--index-image` flag specifies an index image in which to inject the given bundle. It can be specified to resolve dependencies for a bundle.
16+
This is an optional flag which will default to `quay.io/operator-framework/opm:latest`.
17+
The index image provided should **NOT** already have the bundle.
18+
19+
1320
```
1421
operator-sdk run bundle <bundle-image> [flags]
1522
```

0 commit comments

Comments
 (0)