mirror of https://github.com/kubernetes/kops.git
HACK: apply #38590 directly
Because we need https://github.com/kubernetes/kubernetes/pull/38590 , we apply it directly to the vendor/ directory. So that we don't break CI, we don't apply the change to _vendor - though this does mean we now can't run `make copydeps` until 38590 merges upstream.
This commit is contained in:
parent
3965afed12
commit
718ada42be
|
|
@ -28,9 +28,9 @@ type Interface struct {
|
|||
service stubs.Route53API
|
||||
}
|
||||
|
||||
// newInterfaceWithStub facilitates stubbing out the underlying AWS Route53
|
||||
// library for testing purposes. It returns an provider-independent interface.
|
||||
func newInterfaceWithStub(service stubs.Route53API) *Interface {
|
||||
// New builds an Interface, with a specified Route53API implementation.
|
||||
// This is useful for testing purposes, but also if we want an instance with with custom AWS options.
|
||||
func New(service stubs.Route53API) *Interface {
|
||||
return &Interface{service}
|
||||
}
|
||||
|
||||
|
|
|
|||
2
vendor/k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/route53.go
generated
vendored
2
vendor/k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53/route53.go
generated
vendored
|
|
@ -40,5 +40,5 @@ func init() {
|
|||
func newRoute53(config io.Reader) (*Interface, error) {
|
||||
// Connect to AWS Route53 - TODO: Do more sophisticated auth
|
||||
svc := route53.New(session.New())
|
||||
return newInterfaceWithStub(svc), nil
|
||||
return New(svc), nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ func newTestInterface() (dnsprovider.Interface, error) {
|
|||
func newFakeInterface() (dnsprovider.Interface, error) {
|
||||
var service route53testing.Route53API
|
||||
service = route53testing.NewRoute53APIStub()
|
||||
iface := newInterfaceWithStub(service)
|
||||
iface := New(service)
|
||||
// Add a fake zone to test against.
|
||||
params := &route53.CreateHostedZoneInput{
|
||||
CallerReference: aws.String("Nonce"), // Required
|
||||
|
|
|
|||
Loading…
Reference in New Issue