Fix file permissions to support volumes
This commit is contained in:
parent
f4da014907
commit
23ed3ba4c4
7 changed files with 148 additions and 18 deletions
|
|
@ -37,6 +37,7 @@ import (
|
|||
"k8s.io/apimachinery/pkg/util/intstr"
|
||||
"k8s.io/client-go/kubernetes/fake"
|
||||
|
||||
"k8s.io/ingress-nginx/internal/file"
|
||||
"k8s.io/ingress-nginx/internal/ingress"
|
||||
"k8s.io/ingress-nginx/internal/ingress/annotations"
|
||||
"k8s.io/ingress-nginx/internal/ingress/annotations/canary"
|
||||
|
|
@ -154,6 +155,11 @@ func TestCheckIngress(t *testing.T) {
|
|||
})
|
||||
}()
|
||||
|
||||
err := file.CreateRequiredDirectories()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Ensure no panic with wrong arguments
|
||||
var nginx *NGINXController
|
||||
nginx.CheckIngress(nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue