Skip to content

Commit 708deb3

Browse files
committed
Provide richer description of machinehealthcheck type
1 parent 411efc2 commit 708deb3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

install/0000_30_machine-api-operator_07_machinehealthcheck.crd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ spec:
2727
metadata:
2828
type: object
2929
spec:
30+
description: Specification of machine health check policy
3031
properties:
3132
selector:
33+
description: Label selector to match machines whose health will be exercised
3234
type: object
3335
required:
3436
- selector
3537
type: object
3638
status:
39+
description: Most recently observed status of MachineHealthCheck resource
3740
type: object
3841
version: v1alpha1
3942
status:

pkg/apis/healthchecking/v1alpha1/machinehealthcheck_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ type MachineHealthCheck struct {
1616
metav1.TypeMeta `json:",inline"`
1717
metav1.ObjectMeta `json:"metadata,omitempty"`
1818

19-
Spec MachineHealthCheckSpec `json:"spec,omitempty"`
19+
// Specification of machine health check policy
20+
Spec MachineHealthCheckSpec `json:"spec,omitempty"`
21+
22+
// Most recently observed status of MachineHealthCheck resource
2023
Status MachineHealthCheckStatus `json:"status,omitempty"`
2124
}
2225

@@ -31,6 +34,7 @@ type MachineHealthCheckList struct {
3134

3235
// MachineHealthCheckSpec defines the desired state of MachineHealthCheck
3336
type MachineHealthCheckSpec struct {
37+
// Label selector to match machines whose health will be exercised
3438
Selector metav1.LabelSelector `json:"selector"`
3539
}
3640

0 commit comments

Comments
 (0)