Skip to content

Commit

Permalink
Restart HAProxy in case of renew certificates (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Aug 28, 2017
1 parent 5b5828b commit 9dba00d
Show file tree
Hide file tree
Showing 160 changed files with 24,423 additions and 37 deletions.
19 changes: 9 additions & 10 deletions api/validator_test.go
Expand Up @@ -5,7 +5,6 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
Expand All @@ -21,7 +20,7 @@ func TestIsValid(t *testing.T) {

var dataTables = map[*Ingress]bool{
{
ObjectMeta: v1.ObjectMeta{Name: "No Backend Service For TCP"},
ObjectMeta: metav1.ObjectMeta{Name: "No Backend Service For TCP"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand All @@ -35,7 +34,7 @@ var dataTables = map[*Ingress]bool{
},
}: false,
{
ObjectMeta: v1.ObjectMeta{Name: "No Listen Port for TCP"},
ObjectMeta: metav1.ObjectMeta{Name: "No Listen Port for TCP"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand All @@ -52,7 +51,7 @@ var dataTables = map[*Ingress]bool{
},
}: false,
{
ObjectMeta: v1.ObjectMeta{Name: "TCP and HTTP in Same Port specified"},
ObjectMeta: metav1.ObjectMeta{Name: "TCP and HTTP in Same Port specified"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -87,7 +86,7 @@ var dataTables = map[*Ingress]bool{
},
}: false,
{
ObjectMeta: v1.ObjectMeta{Name: "TCP and HTTP in Same Port not specified"},
ObjectMeta: metav1.ObjectMeta{Name: "TCP and HTTP in Same Port not specified"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -121,7 +120,7 @@ var dataTables = map[*Ingress]bool{
},
}: false,
{
ObjectMeta: v1.ObjectMeta{Name: "HTTP with host and path"},
ObjectMeta: metav1.ObjectMeta{Name: "HTTP with host and path"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -165,7 +164,7 @@ var dataTables = map[*Ingress]bool{
},
}: true,
{
ObjectMeta: v1.ObjectMeta{Name: "HTTP with hosts"},
ObjectMeta: metav1.ObjectMeta{Name: "HTTP with hosts"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -208,7 +207,7 @@ var dataTables = map[*Ingress]bool{
},
}: true,
{
ObjectMeta: v1.ObjectMeta{Name: "TCP multi in Same Port"},
ObjectMeta: metav1.ObjectMeta{Name: "TCP multi in Same Port"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -237,7 +236,7 @@ var dataTables = map[*Ingress]bool{
},
}: false,
{
ObjectMeta: v1.ObjectMeta{Name: "TCP with different port"},
ObjectMeta: metav1.ObjectMeta{Name: "TCP with different port"},
Spec: IngressSpec{
Rules: []IngressRule{
{
Expand Down Expand Up @@ -266,7 +265,7 @@ var dataTables = map[*Ingress]bool{
},
}: true,
{
ObjectMeta: v1.ObjectMeta{Name: "Multi rule"},
ObjectMeta: metav1.ObjectMeta{Name: "Multi rule"},
Spec: IngressSpec{
Backend: &HTTPIngressBackend{
IngressBackend: IngressBackend{
Expand Down
58 changes: 54 additions & 4 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/Azure/go-ansiterm/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9dba00d

Please sign in to comment.