Skip to content

Commit 941bfdc

Browse files
kabicinkabicin
authored andcommitted
Cite struct code from k8s impl
1 parent 00666c9 commit 941bfdc

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
@@ -175,6 +175,7 @@ type BaseComponentStatefulSet interface {
175175
GetAnnotations() map[string]string
176176
}
177177

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

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

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

0 commit comments

Comments
 (0)