Merge pull request #3195 from diazjf/auth-tls-e2e

Add e2e Tests for AuthTLS
This commit is contained in:
k8s-ci-robot 2018-10-19 03:02:43 -07:00 committed by GitHub
commit ad89a93a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 395 additions and 12 deletions

View file

@ -18,7 +18,6 @@ package resolver
import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/ingress-nginx/internal/ingress/defaults"
)
@ -27,15 +26,18 @@ type Resolver interface {
// GetDefaultBackend returns the backend that must be used as default
GetDefaultBackend() defaults.Backend
// GetSecret searches for secrets contenating the namespace and name using a the character /
// GetSecret searches for secrets containing the namespace and name using a the character /
GetSecret(string) (*apiv1.Secret, error)
// GetAuthCertificate resolves a given secret name into an SSL certificate.
// The secret must contain 3 keys named:
// ca.crt: contains the certificate chain used for authentication
// tls.crt: contains the server certificate
// tls.key: contains the server key
GetAuthCertificate(string) (*AuthSSLCert, error)
// GetService searches for services contenating the namespace and name using a the character /
// GetService searches for services containing the namespace and name using a the character /
GetService(string) (*apiv1.Service, error)
}