Skip to content

Commit

Permalink
fix test-defs
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo committed Oct 11, 2022
1 parent af2c7f9 commit 6921d7c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .test-defs/bastion-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ spec:
--secret-access-key=$SECRET_ACCESS_KEY
--region=$REGION
image: golang:1.17.5
image: golang:1.19.2
2 changes: 1 addition & 1 deletion .test-defs/dnsrecord-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ spec:
--access-key-id=$DNS_ACCESS_KEY_ID
--secret-access-key=$DNS_SECRET_ACCESS_KEY
image: golang:1.17.5
image: golang:1.19.2
2 changes: 1 addition & 1 deletion .test-defs/infrastructure-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ spec:
--secret-access-key=$SECRET_ACCESS_KEY
--region=$REGION
image: golang:1.17.5
image: golang:1.19.2
2 changes: 1 addition & 1 deletion .test-defs/provider-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
--network-worker-cidr=$NETWORK_WORKER_CIDR
--zone=$ZONE
image: golang:1.17.5
image: golang:1.19.2
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############# builder
FROM golang:1.19.1 AS builder
FROM golang:1.19.2 AS builder

WORKDIR /go/src/github.com/gardener/gardener-extension-provider-aws
COPY . .
Expand Down
14 changes: 7 additions & 7 deletions pkg/controller/infrastructure/configvalidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ import (
"context"
"fmt"

"github.com/gardener/gardener-extension-provider-aws/pkg/apis/aws/helper"
"github.com/gardener/gardener-extension-provider-aws/pkg/aws"
awsclient "github.com/gardener/gardener-extension-provider-aws/pkg/aws/client"
"k8s.io/apimachinery/pkg/util/sets"

"github.com/gardener/gardener/extensions/pkg/controller/common"
"github.com/gardener/gardener/extensions/pkg/controller/infrastructure"
extensionsv1alpha1 "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1"
"github.com/go-logr/logr"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/validation/field"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/gardener/gardener-extension-provider-aws/pkg/apis/aws/helper"
"github.com/gardener/gardener-extension-provider-aws/pkg/aws"
awsclient "github.com/gardener/gardener-extension-provider-aws/pkg/aws/client"
)

// configValidator implements ConfigValidator for aws infrastructure resources.
Expand Down Expand Up @@ -130,8 +130,8 @@ func (c *configValidator) validateVPC(ctx context.Context, awsClient awsclient.I

// validateEIP validates if the given elastic IP exists and can be associated by the Shoot's NAT gateway
// An EIP can be associated with the Shoot when
// - it is not associated yet (new)
// - it is already associated to any Gardener-created NAT Gateway of the Shoot cluster (identified by tag `kubernetes.io/cluster/<shoot-name>`)
// - it is not associated yet (new)
// - it is already associated to any Gardener-created NAT Gateway of the Shoot cluster (identified by tag `kubernetes.io/cluster/<shoot-name>`)
func (c *configValidator) validateEIPS(ctx context.Context, awsClient awsclient.Interface, shootNamespace string, elasticIPAllocationIDs []string, elasticIPAllocationIDToZone map[string]string, fldPath *field.Path) field.ErrorList {
allErrs := field.ErrorList{}

Expand Down

0 comments on commit 6921d7c

Please sign in to comment.