File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ func (c *xenon) getLivenessProbe() *corev1.Probe {
7676 return & corev1.Probe {
7777 Handler : corev1.Handler {
7878 Exec : & corev1.ExecAction {
79- Command : []string {"pgrep" , "xenon" },
79+ Command : []string {
80+ "sh" ,
81+ "-c" ,
82+ "pgrep xenon && xenoncli xenon ping" ,
83+ },
8084 },
8185 },
8286 InitialDelaySeconds : 30 ,
Original file line number Diff line number Diff line change @@ -96,7 +96,11 @@ func TestGetXenonLivenessProbe(t *testing.T) {
9696 livenessProbe := & corev1.Probe {
9797 Handler : corev1.Handler {
9898 Exec : & corev1.ExecAction {
99- Command : []string {"pgrep" , "xenon" },
99+ Command : []string {
100+ "sh" ,
101+ "-c" ,
102+ "pgrep xenon && xenoncli xenon ping" ,
103+ },
100104 },
101105 },
102106 InitialDelaySeconds : 30 ,
You can’t perform that action at this time.
0 commit comments