We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72ab3fe + d4d6a51 commit f770dcbCopy full SHA for f770dcb
pkg/webhook/server.go
@@ -22,7 +22,7 @@ import (
22
"fmt"
23
"net"
24
"net/http"
25
- "path"
+ "os"
26
"path/filepath"
27
"strconv"
28
"sync"
@@ -85,7 +85,7 @@ func (s *Server) setDefaults() {
85
}
86
87
if len(s.CertDir) == 0 {
88
- s.CertDir = path.Join("/tmp", "k8s-webhook-server", "serving-certs")
+ s.CertDir = filepath.Join(os.TempDir(), "k8s-webhook-server", "serving-certs")
89
90
91
0 commit comments