You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/developer/providers/getting-started/initialize-repo-and-api-types.md
-26Lines changed: 0 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,29 +76,6 @@ Create Controller under pkg/controller [y/n]?
76
76
y
77
77
```
78
78
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
-
typeMailgunClusterstruct {
92
-
```
93
-
94
-
```go
95
-
// +kubebuilder:subresource:status
96
-
// +kubebuilder:object:root=true
97
-
98
-
// MailgunMachine is the Schema for the mailgunmachines API
99
-
typeMailgunMachinestruct {
100
-
```
101
-
102
79
And regenerate the CRDs:
103
80
```bash
104
81
make manifests
@@ -111,9 +88,6 @@ git add .
111
88
git commit -m "Generate Cluster and Machine resources."
0 commit comments