Skip to content

Commit d88acfd

Browse files
Deprecate packagemanifests commands (#4838)
Deprecate run packagemanifests and generate packagemanifests command in favour of bundle format. Signed-off-by: varshaprasad96 <[email protected]>
1 parent b9b8354 commit d88acfd

File tree

11 files changed

+39
-173
lines changed

11 files changed

+39
-173
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
Deprecated `operator-sdk generate packagemanifests` and `operator-sdk run packagemanifests`
6+
commands, packagemanifests support in general in favour of operator bundles.
7+
8+
kind: "deprecation"
9+
10+
migration:
11+
header: Deprecate support for packagemanifests.
12+
body: >
13+
The operator-framework is removing support for the packagemanifests format in the near future.
14+
Hence, `operator-sdk generate packagemanifests` and `operator-sdk run packagemanifests` commands
15+
are deprecated. In order to migrate packagemanifests to bundles, `operator-sdk pkgman-to-bundle`
16+
command can be used. Run `operator-sdk pkgman-to-bundle --help` for more details.

internal/cmd/operator-sdk/generate/packagemanifests/cmd.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ func NewCmd() *cobra.Command {
5555
c := &packagemanifestsCmd{}
5656

5757
cmd := &cobra.Command{
58-
Use: "packagemanifests",
58+
Use: "packagemanifests",
59+
Deprecated: "support for the packagemanifests format will be removed in operator-sdk v2.0.0. Use bundles " +
60+
"to package your operator instead. Migrate your packagemanifes to a bundle using " +
61+
"'operator-sdk pkgman-to-bundle' command. Run 'operator-sdk pkgman-to-bundle --help' " +
62+
"for more details.",
5963
Short: "Generates package manifests data for the operator",
6064
Long: longHelp,
6165
Example: examples,

internal/cmd/operator-sdk/generate/packagemanifests/packagemanifests.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ import (
3030

3131
const (
3232
longHelp = `
33-
Note: while the package manifests format is not yet deprecated, the operator-framework is migrated
34-
towards using bundles by default. Run 'operator-sdk generate bundle -h' for more information.
35-
3633
This command generates a set of manifests in a versioned directory and a package manifest file for
3734
your operator. Each versioned directory consists of a ClusterServiceVersion (CSV), CustomResourceDefinitions (CRDs),
3835
and manifests not part of the CSV but required by the operator.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ import (
2727
func NewCmd(cfg *operator.Configuration) *cobra.Command {
2828
i := packagemanifests.NewInstall(cfg)
2929
cmd := &cobra.Command{
30-
Use: "packagemanifests [packagemanifests-root-dir]",
30+
Use: "packagemanifests [packagemanifests-root-dir]",
31+
Deprecated: "support for the packagemanifests format will be removed in operator-sdk v2.0.0. Use bundles to " +
32+
"package your operator instead. Migrate your packagemanifes to a bundle using " +
33+
"'operator-sdk pkgman-to-bundle' command. Run 'operator-sdk pkgman-to-bundle --help' " +
34+
"for more details.",
3135
Short: "Deploy an Operator in the package manifests format with OLM",
3236
Long: `'run packagemanifests' deploys an Operator's package manifests with OLM. The command's argument
3337
will default to './packagemanifests' if unset; if set, the argument must be a package manifests root directory,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ code or manifests.
2828
* [operator-sdk](../operator-sdk) -
2929
* [operator-sdk generate bundle](../operator-sdk_generate_bundle) - Generates bundle data for the operator
3030
* [operator-sdk generate kustomize](../operator-sdk_generate_kustomize) - Contains subcommands that generate operator-framework kustomize data for the operator
31-
* [operator-sdk generate packagemanifests](../operator-sdk_generate_packagemanifests) - Generates package manifests data for the operator
3231

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

Lines changed: 0 additions & 112 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ This command has subcommands that will deploy your Operator with OLM.
2727
* [operator-sdk](../operator-sdk) -
2828
* [operator-sdk run bundle](../operator-sdk_run_bundle) - Deploy an Operator in the bundle format with OLM
2929
* [operator-sdk run bundle-upgrade](../operator-sdk_run_bundle-upgrade) - Upgrade an Operator previously installed in the bundle format with OLM
30-
* [operator-sdk run packagemanifests](../operator-sdk_run_packagemanifests) - Deploy an Operator in the package manifests format with OLM
3130

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

Lines changed: 0 additions & 39 deletions
This file was deleted.

website/content/en/docs/olm-integration/cli-overview.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ was not provisioned with these secrets.
8484

8585
### Package Manifests
8686

87-
- [`generate packagemanifests`][cli-gen-packagemanifests]: creates a new or updates an existing versioned
88-
directory as part of the package manifests in the `<project-root>/packagemanifests` directory.
89-
- [`run packagemanifests`][doc-testing-deployment]: runs an Operator's package manifests format
90-
with an existing OLM installation.
87+
The operator-framework is removing support for the packagemanifests format in the near future, and migration efforts are currently underway. Therefore `generate packagemanifests` and `run packagemanifests` commands have been deprecated. For more
88+
details on bundle format refer [here][bundle]. To migrate from packagemanifests to the bundle format, use the [`operator-sdk pkgman-to-bundle`][cli-pkgman-to-bundle] command.
89+
9190

9291

9392
[bundle]:https://github.com/operator-framework/operator-registry/blob/v1.16.1/docs/design/operator-bundle.md
@@ -98,8 +97,8 @@ with an existing OLM installation.
9897
[cli-olm-uninstall]:/docs/cli/operator-sdk_olm_uninstall
9998
[cli-gen-bundle]:/docs/cli/operator-sdk_generate_bundle
10099
[cli-run-bundle]:/docs/cli/operator-sdk_run_bundle
101-
[cli-gen-packagemanifests]:/docs/cli/operator-sdk_generate_packagemanifests
102100
[cli-gen-kustomize-manifests]:/docs/cli/operator-sdk_generate_kustomize_manifests
103101
[cli-bundle-validate]:/docs/cli/operator-sdk_bundle_validate
104102
[doc-testing-deployment]:/docs/olm-integration/testing-deployment
105103
[cli-run-bundle-upgrade]: /docs/cli/operator-sdk_run_bundle-upgrade
104+
[cli-pkgman-to-bundle]: /docs/cli/operator-sdk_pkgman-to-bundle

website/content/en/docs/olm-integration/generation.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ next version of your Operator.
1515
## Overview
1616

1717
Several `operator-sdk` subcommands manage operator-framework manifests and metadata,
18-
in particular [`ClusterServiceVersion`'s (CSVs)][doc-csv], for an Operator: [`generate bundle`][cli-gen-bundle],
19-
[`generate packagemanifests`][cli-gen-packagemanifests], and [`generate kustomize manifests`][cli-gen-kustomize-manifests].
20-
See this [CLI overview][cli-overview] for details on each command. These manifests come in two different formats,
21-
[bundle][bundle] and [package manifests][package-manifests], which are described in detail below.
22-
Ideally the bundle format should be used as this is the default packaging format in operator-framework.
23-
However the package manifests format is still supported by operator-framework tooling.
18+
in particular [`ClusterServiceVersion`'s (CSVs)][doc-csv], for an Operator: [`generate bundle`][cli-gen-bundle] and [`generate kustomize manifests`][cli-gen-kustomize-manifests].
19+
See this [CLI overview][cli-overview] for details on each command.
20+
21+
**Note:** The packagemanifests format is deprecated and support will be removed in `operator-sdk` v2.0.0.
2422

2523
### Kustomize files
2624

@@ -423,10 +421,8 @@ when you set `--version` when running `generate <bundle|packagemanifests>`.
423421
[cli-overview]:/docs/olm-integration/cli-overview
424422
[cli-gen-kustomize-manifests]:/docs/cli/operator-sdk_generate_kustomize_manifests
425423
[cli-gen-bundle]:/docs/cli/operator-sdk_generate_bundle
426-
[cli-gen-packagemanifests]:/docs/cli/operator-sdk_generate_packagemanifests
427424
[bundle]: https://github.com/operator-framework/operator-registry/blob/v1.16.1/docs/design/operator-bundle.md
428425
[bundle-metadata]:https://github.com/operator-framework/operator-registry/blob/v1.12.6/docs/design/operator-bundle.md#bundle-annotations
429-
[package-manifests]:https://github.com/operator-framework/operator-registry/tree/v1.5.3#manifest-format
430426
[install-modes]:https://github.com/operator-framework/operator-lifecycle-manager/blob/4197455/Documentation/design/building-your-csv.md#operator-metadata
431427
[olm-capabilities]:/docs/advanced-topics/operator-capabilities/operator-capabilities
432428
[csv-markers]:/docs/building-operators/golang/references/markers

0 commit comments

Comments
 (0)