Init add liveness probe

Signed-off-by: DavidSpek <vanderspek.david@gmail.com>
This commit is contained in:
DavidSpek
2023-05-16 11:17:06 +02:00
committed by David van der Spek
parent af084a5a65
commit db96273ab3
14 changed files with 594 additions and 0 deletions
@@ -102,6 +102,7 @@ type KubernetesMetaConfiguration struct {
PodManagementPolicy string `json:"pod_management_policy,omitempty"`
EnableReadinessProbe bool `json:"enable_readiness_probe,omitempty"`
EnableCrossNamespaceSecret bool `json:"enable_cross_namespace_secret,omitempty"`
LivenessProbe *v1.Probe `json:"liveness_probe,omitempty"`
}
// PostgresPodResourcesDefaults defines the spec of default resources
@@ -87,6 +87,7 @@ type PostgresSpec struct {
AdditionalVolumes []AdditionalVolume `json:"additionalVolumes,omitempty"`
Streams []Stream `json:"streams,omitempty"`
Env []v1.EnvVar `json:"env,omitempty"`
LivenessProbe *v1.Probe `json:"livenessProbe,omitempty"`
// deprecated json tags
InitContainersOld []v1.Container `json:"init_containers,omitempty"`