Add /readyz endpoints to converter/webhook test image

This commit is contained in:
Jordan Liggitt 2019-08-30 12:35:48 -04:00
parent e176e47719
commit 0558e83867
4 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
2.5
2.6

View File

@ -44,7 +44,7 @@ import (
)
func main() {
rootCmd := &cobra.Command{Use: "app", Version: "2.5"}
rootCmd := &cobra.Command{Use: "app", Version: "2.6"}
rootCmd.AddCommand(auditproxy.CmdAuditProxy)
rootCmd.AddCommand(connect.CmdConnect)

View File

@ -64,6 +64,7 @@ func main(cmd *cobra.Command, args []string) {
config := Config{CertFile: certFile, KeyFile: keyFile}
http.HandleFunc("/crdconvert", converter.ServeExampleConvert)
http.HandleFunc("/readyz", func(w http.ResponseWriter, req *http.Request) { w.Write([]byte("ok")) })
clientset := getClient()
server := &http.Server{
Addr: fmt.Sprintf(":%d", port),

View File

@ -218,6 +218,7 @@ func main(cmd *cobra.Command, args []string) {
http.HandleFunc("/custom-resource", serveCustomResource)
http.HandleFunc("/mutating-custom-resource", serveMutateCustomResource)
http.HandleFunc("/crd", serveCRD)
http.HandleFunc("/readyz", func(w http.ResponseWriter, req *http.Request) { w.Write([]byte("ok")) })
server := &http.Server{
Addr: fmt.Sprintf(":%d", port),
TLSConfig: configTLS(config),