Commit 5096b1c
authored
📖 Update new provider docs to be more current (#12085)
* docs: make the mkdir and cd use the same directory
Signed-off-by: cprivitere <[email protected]>
* docs: document staging the generated files to the git commit
Signed-off-by: cprivitere <[email protected]>
* docs: remove status subresource section
- created by default since kubebuilder 3.0 in 2020
Signed-off-by: cprivitere <[email protected]>
* docs: add comments back and remove reference to deleted comments
- referencing deleted comments is very confusing to understand
Signed-off-by: cprivitere <[email protected]>
* docs: update scaffold examples to current kubebuilder output
Signed-off-by: cprivitere <[email protected]>
* docs: point readers to where the files in question likely are
Signed-off-by: cprivitere <[email protected]>
* docs: replace Captain with Mailgun for consistency in example
Signed-off-by: cprivitere <[email protected]>
* docs: grammar and typo fix
Signed-off-by: cprivitere <[email protected]>
* docs: update examples to what you get from current kubebuilder version
Signed-off-by: cprivitere <[email protected]>
* docs: Improvements to consistency and functionality of example code
- Consistently refer to cluster as mailgunCluster
- Add that you need to import the cluster-api package to your project before you can use the util function
- Use mailgunCluster.ObjectMeta instead of a pointer in GetOwnerCluster call
- Add explanation that we need to wait for the Cluster API controller to set the ownerref before we can use the cluster object, update code to do that
- Show entire Reconcile function again after adding many lines to it
Signed-off-by: cprivitere <[email protected]>
* docs: update reconciler initiation to be like current kubebuilder provided scaffold
Signed-off-by: cprivitere <[email protected]>
* docs: correct typo of credentials manifest filename
Signed-off-by: cprivitere <[email protected]>
* docs: update and simplify image name section
- Provide directions that work with current kubebuilder output
- Provide simpler example overriding of image name
- Drop old no longer working example of image name patching
- Providing a more current example of how providers actually do this would involve teaching about CI/CD setups which seems out of scope for this document
Signed-off-by: cprivitere <[email protected]>
* docs: update cluster-api deployment section
- Old section didn't work anymore
- replace it with a link to the quick start guide
- Suggest/note that we assume the user will use kind and clusterctl init, which will install cert-manager automatically.
- Update Condition status example to match what a kubectl describe currently shows
Signed-off-by: cprivitere <[email protected]>
* docs: update example of runing provider in a local kind cluster
- Show how to load the image into kind
- Use a tag that isn't latest so kubernetes won't try to pull it from docker hub
- Update Conditions fields to current kubernetes output
Signed-off-by: cprivitere <[email protected]>
* docs: update tilt example
- Tilt example wasn't functional as it was
- Added go_main to point to where kubebuilder puts main.go
- Use make tilt-up instead of trying to build your own kind cluster to proerly set up tilt to use the local registry config showin in the example tilt files
Signed-off-by: cprivitere <[email protected]>
* docs: remove unneeded ctx from example
Signed-off-by: cprivitere <[email protected]>
* docs: simplify getowner introduction
Signed-off-by: cprivitere <[email protected]>
---------
Signed-off-by: cprivitere <[email protected]>1 parent 29fabbd commit 5096b1c
File tree
5 files changed
+127
-108
lines changed- docs/book/src/developer/providers/getting-started
5 files changed
+127
-108
lines changedLines changed: 32 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 5 | + | |
24 | 6 | | |
25 | 7 | | |
26 | | - | |
| 8 | + | |
27 | 9 | | |
28 | 10 | | |
| 11 | + | |
| 12 | + | |
29 | 13 | | |
30 | 14 | | |
31 | 15 | | |
32 | 16 | | |
33 | | - | |
| 17 | + | |
34 | 18 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 19 | | |
41 | 20 | | |
42 | 21 | | |
| |||
45 | 24 | | |
46 | 25 | | |
47 | 26 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
53 | 32 | | |
54 | 33 | | |
55 | 34 | | |
| |||
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
69 | 60 | | |
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
73 | 64 | | |
74 | 65 | | |
75 | | - | |
| 66 | + | |
76 | 67 | | |
77 | 68 | | |
78 | 69 | | |
79 | 70 | | |
80 | 71 | | |
81 | 72 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
87 | 78 | | |
88 | 79 | | |
89 | 80 | | |
| |||
102 | 93 | | |
103 | 94 | | |
104 | 95 | | |
| 96 | + | |
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
| |||
116 | 108 | | |
117 | 109 | | |
118 | 110 | | |
119 | | - | |
| 111 | + | |
120 | 112 | | |
121 | 113 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 114 | + | |
| 115 | + | |
128 | 116 | | |
129 | 117 | | |
130 | 118 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 64 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
| 119 | + | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
133 | 132 | | |
134 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
135 | 144 | | |
136 | | - | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | | - | |
140 | 149 | | |
141 | 150 | | |
142 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
143 | 180 | | |
144 | 181 | | |
145 | 182 | | |
| |||
152 | 189 | | |
153 | 190 | | |
154 | 191 | | |
155 | | - | |
156 | | - | |
| 192 | + | |
| 193 | + | |
157 | 194 | | |
158 | | - | |
| 195 | + | |
159 | 196 | | |
160 | 197 | | |
161 | 198 | | |
| |||
172 | 209 | | |
173 | 210 | | |
174 | 211 | | |
175 | | - | |
| 212 | + | |
176 | 213 | | |
177 | 214 | | |
178 | 215 | | |
179 | 216 | | |
180 | | - | |
181 | | - | |
| 217 | + | |
| 218 | + | |
182 | 219 | | |
183 | | - | |
| 220 | + | |
184 | 221 | | |
185 | 222 | | |
186 | 223 | | |
187 | 224 | | |
188 | 225 | | |
189 | 226 | | |
190 | | - | |
| 227 | + | |
191 | 228 | | |
192 | 229 | | |
193 | 230 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
197 | 234 | | |
198 | 235 | | |
199 | 236 | | |
| |||
223 | 260 | | |
224 | 261 | | |
225 | 262 | | |
226 | | - | |
| 263 | + | |
227 | 264 | | |
228 | 265 | | |
229 | 266 | | |
| |||
256 | 293 | | |
257 | 294 | | |
258 | 295 | | |
259 | | - | |
| 296 | + | |
260 | 297 | | |
261 | 298 | | |
262 | 299 | | |
| |||
0 commit comments