@@ -26,7 +26,7 @@ import (
26
26
)
27
27
28
28
/*
29
- Next, we get types for the Spec and Status of our Kind. Kubernetes functions
29
+ Next, we define types for the Spec and Status of our Kind. Kubernetes functions
30
30
by reconciling desired state (`Spec`) with actual cluster state (other objects'
31
31
`Status`) and external state, and then recording what it observed (`Status`).
32
32
Thus, every *functional* object includes spec and status. A few types, like
@@ -49,15 +49,15 @@ type CronJobStatus struct {
49
49
}
50
50
51
51
/*
52
- Next, we get the types corresponding to actual Kinds, `CronJob` and `CronJobList`.
52
+ Next, we define the types corresponding to actual Kinds, `CronJob` and `CronJobList`.
53
53
`CronJob` is our root type, and describes the `CronJob` kind. Like all Kubernetes objects, it contains
54
54
`TypeMeta` (which describes API version and Kind), and also contains `ObjectMeta`, which holds things
55
55
like name, namespace, and labels.
56
56
57
57
`CronJobList` is simply a container for multiple `CronJob`s. It's the Kind used in bulk operations,
58
58
like LIST.
59
59
60
- In general, we never modify either of these -- all modifications go in either Spec or Status
60
+ In general, we never modify either of these -- all modifications go in either Spec or Status.
61
61
62
62
That little `+kubebuilder:object:root` comment is called a marker. We'll see
63
63
more of them in a bit, but know that they act as extra metadata, telling
0 commit comments