Only support SSL dynamic mode

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-08-13 17:14:55 -04:00
parent 333d9fd48d
commit 80bd481abb
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
40 changed files with 415 additions and 709 deletions

View file

@ -18,6 +18,7 @@ package framework
import (
"fmt"
"os"
"time"
. "github.com/onsi/ginkgo"
@ -31,7 +32,6 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd/api"
"k8s.io/ingress-nginx/internal/file"
)
const (
@ -205,13 +205,13 @@ func secretInNamespace(c kubernetes.Interface, namespace, name string) wait.Cond
}
// WaitForFileInFS waits a default amount of time for the specified file is present in the filesystem
func WaitForFileInFS(file string, fs file.Filesystem) error {
return wait.PollImmediate(Poll, DefaultTimeout, fileInFS(file, fs))
func WaitForFileInFS(file string) error {
return wait.PollImmediate(Poll, DefaultTimeout, fileInFS(file))
}
func fileInFS(file string, fs file.Filesystem) wait.ConditionFunc {
func fileInFS(file string) wait.ConditionFunc {
return func() (bool, error) {
stat, err := fs.Stat(file)
stat, err := os.Stat(file)
if err != nil {
return false, err
}