Skip to content

Commit 1e94d86

Browse files
committed
docs: remove status subresource section
- created by default since kubebuilder 3.0 in 2020 Signed-off-by: cprivitere <[email protected]>
1 parent 292796b commit 1e94d86

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

docs/book/src/developer/providers/getting-started/initialize-repo-and-api-types.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,29 +76,6 @@ Create Controller under pkg/controller [y/n]?
7676
y
7777
```
7878

79-
### Add Status subresource
80-
81-
The [status subresource][status] lets Spec and Status requests for custom resources be addressed separately so requests don't conflict with each other.
82-
It also lets you split RBAC rules between Spec and Status. You will have to [manually enable it in Kubebuilder][kbstatus].
83-
84-
Add the `subresource:status` annotation to your `<provider>cluster_types.go` `<provider>machine_types.go`
85-
86-
```go
87-
// +kubebuilder:subresource:status
88-
// +kubebuilder:object:root=true
89-
90-
// MailgunCluster is the Schema for the mailgunclusters API
91-
type MailgunCluster struct {
92-
```
93-
94-
```go
95-
// +kubebuilder:subresource:status
96-
// +kubebuilder:object:root=true
97-
98-
// MailgunMachine is the Schema for the mailgunmachines API
99-
type MailgunMachine struct {
100-
```
101-
10279
And regenerate the CRDs:
10380
```bash
10481
make manifests
@@ -111,9 +88,6 @@ git add .
11188
git commit -m "Generate Cluster and Machine resources."
11289
```
11390

114-
[status]: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#status-subresource
115-
[kbstatus]: https://book.kubebuilder.io/reference/generating-crd.html?highlight=status#status
116-
11791
### Apply further customizations
11892

11993
The cluster API CRDs should be further customized, please refer to [provider contracts](../contracts/overview.md).

0 commit comments

Comments
 (0)