-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v23.2.x] [k8s] Topic controller #13488
Merged
RafalKorepta
merged 11 commits into
redpanda-data:v23.2.x
from
vbotbuildovich:backport-pr-11208-v23.2.x-594
Sep 18, 2023
Merged
[v23.2.x] [k8s] Topic controller #13488
RafalKorepta
merged 11 commits into
redpanda-data:v23.2.x
from
vbotbuildovich:backport-pr-11208-v23.2.x-594
Sep 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cherry picked from commit e6bee61)
All new files created by kubebuilder will have license that is time ranged. (cherry picked from commit c2201fb)
This code was generated using kubebuilder: ``` kubebuilder version [Deprecation Notice] This version is deprecated.The `go/v3` cannot scaffold projects using kustomize versions v4x+ and cannot fully support Kubernetes 1.25+.It is recommended to upgrade your project to the latest versions available (go/v4).Please, check the migration guide to learn how to upgrade your project Version: main.version{KubeBuilderVersion:"3.10.0", KubernetesVendor:"1.26.1", GitCommit:"0fa57405d4a892efceec3c5a902f634277e30732", BuildDate:"2023-04-15T08:10:35Z", GoOs:"darwin", GoArch:"amd64"} ``` ``` kubebuilder create api --group cluster.redpanda.com --version v1alpha1 --kind Topic --namespaced --force [Deprecation Notice] This version is deprecated.The `go/v3` cannot scaffold projects using kustomize versions v4x+ and cannot fully support Kubernetes 1.25+.It is recommended to upgrade your project to the latest versions available (go/v4).Please, check the migration guide to learn how to upgrade your project Create Resource [y/n] y Create Controller [y/n] y Writing kustomize manifests for you to edit... Writing scaffold for you to edit... apis/cluster.redpanda.com/v1alpha1/topic_types.go controllers/cluster.redpanda.com/topic_controller.go Update dependencies: $ go mod tidy Running make: $ make generate test -s /Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin/controller-gen || GOBIN=/Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 /Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin/controller-gen object:headerFile="../../../licenses/boilerplate.go.txt" paths="./..." Next: implement your new API and generate the manifests (e.g. CRDs,CRs) with: $ make manifests ``` (cherry picked from commit 8113d71)
New files was generated using the following command: ``` make manifests test -s /Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin/controller-gen || GOBIN=/Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 /Users/korepta/workspace/vectorized.io/redpanda/src/go/k8s/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases output:rbac:artifacts:config=config/rbac/bases/operator ``` (cherry picked from commit a8dabf4)
(cherry picked from commit 64e0e03)
(cherry picked from commit 55864be)
(cherry picked from commit 7cb97ba)
(cherry picked from commit 813e76b)
(cherry picked from commit 8125e26)
(cherry picked from commit 49eadba)
RafalKorepta
approved these changes
Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of PR #11208
Fixes: #13487,