Skip to content

Commit 2405dcb

Browse files
kabicinKirby Chin
authored andcommitted
Cite struct code from k8s impl
1 parent 0d16ff5 commit 2405dcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ type BaseComponentStatefulSet interface {
176176
GetAnnotations() map[string]string
177177
}
178178

179+
// This struct is taken from the Probe implementation in https://github.com/kubernetes/api/blob/v0.24.2/core/v1/types.go
179180
// +kubebuilder:object:generate=true
180181
type BaseComponentProbe struct {
181182
// The action taken to determine the health of a container
@@ -215,6 +216,7 @@ type BaseComponentProbe struct {
215216
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
216217
}
217218

219+
// This struct is taken from the ProbeHandler implementation in https://github.com/kubernetes/api/blob/v0.24.2/core/v1/types.go
218220
// +kubebuilder:object:generate=true
219221
type BaseComponentProbeHandler struct {
220222
// Exec specifies the action to take.
@@ -234,6 +236,7 @@ type BaseComponentProbeHandler struct {
234236
GRPC *corev1.GRPCAction `json:"grpc,omitempty"`
235237
}
236238

239+
// This struct is based upon the HTTPGetAction implementation in https://github.com/kubernetes/api/blob/v0.24.2/core/v1/types.go
237240
// +kubebuilder:object:generate=true
238241
type OptionalHTTPGetAction struct {
239242
// Path to access on the HTTP server.

0 commit comments

Comments
 (0)