@@ -30,6 +30,7 @@ func createHTTPHealthcheckCmd() *cobra.Command {
3030 var query []string
3131 var protocol string
3232 var path string
33+ var host string
3334
3435 var createHTTPHealthcheck = & cobra.Command {
3536 Use : "create" ,
@@ -63,6 +64,7 @@ func createHTTPHealthcheckCmd() *cobra.Command {
6364 Headers : headersMap ,
6465 Protocol : protocol ,
6566 Path : path ,
67+ Host : host ,
6668 },
6769 }
6870 ctx , cancel := context .WithTimeout (context .Background (), defaultTimeout )
@@ -111,6 +113,8 @@ func createHTTPHealthcheckCmd() *cobra.Command {
111113
112114 createHTTPHealthcheck .PersistentFlags ().StringVar (& path , "path" , "" , "Path to use for the healthcheck" )
113115
116+ createHTTPHealthcheck .PersistentFlags ().StringVar (& host , "host" , "" , "Host header to use for the health check HTTP requests" )
117+
114118 createHTTPHealthcheck .PersistentFlags ().StringVar (& timeout , "timeout" , "5s" , "healthcheck timeout" )
115119
116120 createHTTPHealthcheck .PersistentFlags ().StringSliceVar (& headers , "headers" , []string {}, "healthchecks http headers (example: foo=bar)" )
@@ -142,6 +146,7 @@ func updateHTTPHealthcheckCmd() *cobra.Command {
142146 var query []string
143147 var protocol string
144148 var path string
149+ var host string
145150
146151 var updateHTTPHealthcheck = & cobra.Command {
147152 Use : "update" ,
@@ -176,6 +181,7 @@ func updateHTTPHealthcheckCmd() *cobra.Command {
176181 Headers : headersMap ,
177182 Protocol : protocol ,
178183 Path : path ,
184+ Host : host ,
179185 },
180186 }
181187 ctx , cancel := context .WithTimeout (context .Background (), defaultTimeout )
@@ -228,6 +234,8 @@ func updateHTTPHealthcheckCmd() *cobra.Command {
228234
229235 updateHTTPHealthcheck .PersistentFlags ().StringVar (& path , "path" , "" , "Path to use for the healthcheck" )
230236
237+ updateHTTPHealthcheck .PersistentFlags ().StringVar (& host , "host" , "" , "Host header to use for the health check HTTP requests" )
238+
231239 updateHTTPHealthcheck .PersistentFlags ().StringVar (& timeout , "timeout" , "5s" , "healthcheck timeout" )
232240
233241 updateHTTPHealthcheck .PersistentFlags ().StringSliceVar (& headers , "headers" , []string {}, "healthchecks http headers (example: foo=bar)" )
0 commit comments