Skip to content

Commit caea702

Browse files
committed
feat(healthcheck): Add support to add healthcheck per proctype
1 parent 35cd756 commit caea702

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

api/config.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type Config struct {
3030
// CPU is used to set process CPU limits. It can be set in terms of whole CPUs
3131
// (ex 1) or in milli units to reflect the number of CPU shares (ex 500m).
3232
CPU map[string]interface{} `json:"cpu,omitempty"`
33-
// Healthchecks are the healthchecks that the application uses.
34-
Healthcheck map[string]*Healthcheck `json:"healthcheck,omitempty"`
33+
// Healthcheck is map of healthchecks for each process that the application uses.
34+
Healthcheck map[string]*Healthchecks `json:"healthcheck,omitempty"`
3535
// Tags restrict applications to run on k8s nodes with that label.
3636
Tags map[string]interface{} `json:"tags,omitempty"`
3737
// Registry is a key-value pair to provide authentication for docker registries.
@@ -54,6 +54,10 @@ type ConfigHookRequest struct {
5454
App string `json:"receive_repo"`
5555
}
5656

57+
// Healthchecks is a map of healthcheck probes.
58+
// The valid values are "livenessProbe" and "readinessProbe".
59+
type Healthchecks map[string]*Healthcheck
60+
5761
// Healthcheck is the structure for an application healthcheck.
5862
// Healthchecks only need to provide information about themselves.
5963
// All the information is pushed to the server and handled by kubernetes.

0 commit comments

Comments
 (0)