File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
cmd/katib-controller/v1beta1 Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,15 @@ func main() {
136
136
}
137
137
138
138
log .Info ("Setting up health checker." )
139
- mgr .AddHealthzCheck ("healthz" , healthz .Ping )
139
+ if err := mgr .AddHealthzCheck ("healthz" , healthz .Ping ); err != nil {
140
+ log .Error (err , "Unable to add healthz endpoint to the manager" )
141
+ os .Exit (1 )
142
+ }
140
143
// TODO (@anencore94) need to more detailed check whether is it possible to communicate with k8s-apiserver or db-manager at '/readyz' ?
141
- mgr .AddReadyzCheck ("readyz" , healthz .Ping )
144
+ if err := mgr .AddReadyzCheck ("readyz" , healthz .Ping ); err != nil {
145
+ log .Error (err , "Unable to add readyz endpoint to the manager" )
146
+ os .Exit (1 )
147
+ }
142
148
143
149
// Start the Cmd
144
150
log .Info ("Starting the Cmd." )
You can’t perform that action at this time.
0 commit comments