Skip to content

Commit

Permalink
switch to save self signed certs to /tmp (#369)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangjing Li <xiangli@redhat.com>
  • Loading branch information
xiangjingli authored Sep 26, 2023
1 parent 619d1b6 commit 465a092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhook/listener/webhook_listner.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ var webhookListener *WebhookListener

// Add does nothing for namespace subscriber, it generates cache for each of the item
func Add(mgr manager.Manager, hubconfig *rest.Config, tlsKeyFile, tlsCrtFile string, disableTLS bool, createService bool) error {
klog.V(2).Info("Setting up webhook listener ...")
klog.Info("Setting up webhook listener ...")

if !disableTLS {
dir := "/root/certs"
dir := filepath.Join(os.TempDir(), "github-webhook-server-certs")

if strings.EqualFold(tlsKeyFile, "") || strings.EqualFold(tlsCrtFile, "") {
err := utils.GenerateServerCerts(dir)
Expand Down

0 comments on commit 465a092

Please sign in to comment.