Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions changelog/fragments/3190-add-new-cli-for-go-operators.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
entries:
- description: >
The `operator-sdk` binary has a new CLI workflow and project layout
for scaffolding Go operators that is aligned with Kubebuilder's CLI
and project layout.
See the new [Quickstart Guide](https://sdk.operatorframework.io/docs/golang/quickstart)
and the new [CLI reference](https://sdk.operatorframework.io/docs/new-cli) for more details.

kind: "addition"

breaking: false

pull_request_override: 3190
18 changes: 18 additions & 0 deletions changelog/fragments/3190-deprecate-old-cli-for-go-operators.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
entries:
- description: >
With the introduction of the new [Kubebuilder aligned CLI](https://sdk.operatorframework.io/docs/new-cli)
and project layout for Go operators, the [old CLI](https://sdk.operatorframework.io/docs/cli)
will still continue to work for Go projects scaffolded in the old layout with `operator-sdk new`.
However the old CLI is now deprecated and will be removed in a future release.

kind: "deprecation"

breaking: false

pull_request_override: 3190

migration:
header: Migrating Go projects to the new Kubebuilder aligned project layout
body: >
See the [migration guide](https://sdk.operatorframework.io/docs/golang/project_migration_guide/)
that walks through an example of how to migrate a Go based operator project from the old layout to the new layout.
11 changes: 11 additions & 0 deletions changelog/fragments/3190-remove-new-cmd-for-go-operators.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
entries:
- description: >
The `operator-sdk new` command no longer supports scaffolding new Go projects with the `--type=Go` flag.
To scaffold new projects, users are expected to use `operator-sdk init` as part of the
[new CLI]((https://sdk.operatorframework.io/docs/new-cli)) for Go operators.

kind: "removal"

breaking: false

pull_request_override: 3190