You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support marking bundles as deprecated and truncating the update
graph of a given package. Deprecated versions will not be installable.
Deprecating a bundle can result in the removal of channels but this is
not permitted for the default channel. Bundles that are not in the
index will be ignored during deprecation.
opm index deprecate --bundles "quay.io/my/bundle:1.3.0" --from-index "quay.io/my/index:v1" --tag "quay.io/my/index:v2"
24
+
25
+
Produces the following update graph in quay.io/my/index:v2
26
+
1.4.0 -- replaces -> 1.3.0 [deprecated]
27
+
28
+
Deprecating a bundle that removes the default channel is not allowed. Changing the default channel prior to deprecation is possible by publishing a new bundle to the index.
29
+
`)
30
+
31
+
funcnewIndexDeprecateCmd() *cobra.Command {
32
+
indexCmd:=&cobra.Command{
33
+
Use: "deprecate",
34
+
Short: "Deprecate operator bundles from an index.",
logrus.Panic("Failed to set required `bundles` flag for `index add`")
52
+
}
53
+
indexCmd.Flags().StringP("binary-image", "i", "", "container image for on-image `opm` command")
54
+
indexCmd.Flags().StringP("container-tool", "c", "", "tool to interact with container images (save, build, etc.). One of: [docker, podman]")
55
+
indexCmd.Flags().StringP("build-tool", "u", "", "tool to build container images. One of: [docker, podman]. Defaults to podman. Overrides part of container-tool.")
56
+
indexCmd.Flags().StringP("pull-tool", "p", "", "tool to pull container images. One of: [none, docker, podman]. Defaults to none. Overrides part of container-tool.")
57
+
indexCmd.Flags().StringP("tag", "t", "", "custom tag for container image being built")
0 commit comments