Skip to content
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

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #11208
Fixes: #13487,

Rafal Korepta and others added 11 commits September 18, 2023 11:20
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 7cb97ba)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Sep 18, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Sep 18, 2023
@RafalKorepta RafalKorepta marked this pull request as ready for review September 18, 2023 14:37
@RafalKorepta RafalKorepta requested a review from a team as a code owner September 18, 2023 14:37
@RafalKorepta RafalKorepta merged commit 5823678 into redpanda-data:v23.2.x Sep 18, 2023
24 of 26 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.2.x-next, v23.2.9 Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants