Skip to content

Commit

Permalink
Merge pull request #824 from negz/release-0.19-rt-0.14.1
Browse files Browse the repository at this point in the history
[release-0.19] Bump crossplane-runtime to v0.14.1
  • Loading branch information
negz authored Sep 8, 2021
2 parents e755b74 + 51c3714 commit 885129f
Show file tree
Hide file tree
Showing 57 changed files with 67 additions and 63 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ PLATFORMS ?= linux_amd64 linux_arm64
CODE_GENERATOR_COMMIT ?= cac5654b7bb64c8f754ad9af01799ef70d9541b6
GENERATED_SERVICES="apigatewayv2,cloudfront,dynamodb,efs,kms,lambda,rds,secretsmanager,servicediscovery,sfn"

# kind-related versions
KIND_VERSION ?= v0.11.1
KIND_NODE_IMAGE_TAG ?= v1.19.11

# -include will silently skip missing files, which allows us
# to load those files with a target in the Makefile. If only
# "include" was used, the make command would fail and refuse
Expand Down Expand Up @@ -89,7 +93,7 @@ e2e.run: test-integration
# Run integration tests.
test-integration: $(KIND) $(KUBECTL) $(HELM3)
@$(INFO) running integration tests using kind $(KIND_VERSION)
@$(ROOT_DIR)/cluster/local/integration_tests.sh || $(FAIL)
@KIND_NODE_IMAGE_TAG=${KIND_NODE_IMAGE_TAG} $(ROOT_DIR)/cluster/local/integration_tests.sh || $(FAIL)
@$(OK) integration tests passed

# Update the submodules, such as the common build scripts.
Expand Down
5 changes: 3 additions & 2 deletions cluster/local/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ echo "created cache dir at ${CACHE_PATH}"
docker save "${BUILD_IMAGE}" -o "${CACHE_PATH}/${PACKAGE_NAME}.xpkg" && chmod 644 "${CACHE_PATH}/${PACKAGE_NAME}.xpkg"

# create kind cluster with extra mounts
echo_step "creating k8s cluster using kind"
KIND_NODE_IMAGE="kindest/node:${KIND_NODE_IMAGE_TAG}"
echo_step "creating k8s cluster using kind ${KIND_VERSION} and node image ${KIND_NODE_IMAGE}"
KIND_CONFIG="$( cat <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
Expand All @@ -82,7 +83,7 @@ nodes:
containerPath: /cache
EOF
)"
echo "${KIND_CONFIG}" | "${KIND}" create cluster --name="${K8S_CLUSTER}" --wait=5m --config=-
echo "${KIND_CONFIG}" | "${KIND}" create cluster --name="${K8S_CLUSTER}" --wait=5m --image="${KIND_NODE_IMAGE}" --config=-

# tag controller image and load it into kind cluster
docker tag "${CONTROLLER_IMAGE}" "${PACKAGE_CONTROLLER_IMAGE}"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.16
require (
github.com/aws/aws-sdk-go v1.37.4
github.com/aws/aws-sdk-go-v2 v0.23.0
github.com/crossplane/crossplane-runtime v0.14.0
github.com/crossplane/crossplane-runtime v0.14.1
github.com/crossplane/crossplane-tools v0.0.0-20210320162312-1baca298c527
github.com/evanphx/json-patch v4.9.0+incompatible
github.com/go-ini/ini v1.46.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwc
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/crossplane/crossplane-runtime v0.14.0 h1:alBvQAwg9wJ88wEBnzyzmlN0N/v1W3Jx4OvBX3Fmrkg=
github.com/crossplane/crossplane-runtime v0.14.0/go.mod h1:Bc54/KBvV9ld/tvervcnhcSzk13FYguTqmYt72Mybps=
github.com/crossplane/crossplane-runtime v0.14.1 h1:bCPC7vKHWuhHTX22f/zfkxMcIjKd4/gZ5MjFAnLQzAI=
github.com/crossplane/crossplane-runtime v0.14.1/go.mod h1:Bc54/KBvV9ld/tvervcnhcSzk13FYguTqmYt72Mybps=
github.com/crossplane/crossplane-tools v0.0.0-20210320162312-1baca298c527 h1:9M6hMLKqjxtL9d9nwfcaAt59Ey0CPfSXQ3iIdYRUNaE=
github.com/crossplane/crossplane-tools v0.0.0-20210320162312-1baca298c527/go.mod h1:C735A9X0x0lR8iGVOOxb49Mt70Ua4EM2b7PGaRPBLd4=
github.com/dave/jennifer v1.3.0 h1:p3tl41zjjCZTNBytMwrUuiAnherNUZktlhPTKoF/sEk=
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/acm/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
return managed.ExternalCreation{}, awsclient.Wrap(err, errCreate)
}
meta.SetExternalName(cr, aws.StringValue(response.RequestCertificateOutput.CertificateArn))
return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil

}

Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/acm/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func TestCreate(t *testing.T) {
want: want{
cr: certificate(
withDomainName()),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"InValidInput": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/acmpca/certificateauthority/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
return managed.ExternalCreation{}, awsclient.Wrap(err, errCreate)
}
meta.SetExternalName(cr, aws.StringValue(response.CreateCertificateAuthorityOutput.CertificateAuthorityArn))
return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func TestCreate(t *testing.T) {
},
want: want{
cr: certificateAuthority(withCertificateAuthorityArn()),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"InValidInput": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
// identity of the CA it applies to, and the principal it applies.
meta.SetExternalName(cr, cr.Spec.ForProvider.Principal+"/"+awsclient.StringValue(cr.Spec.ForProvider.CertificateAuthorityARN))

return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestCreate(t *testing.T) {
withPrincipal(principal),
withCertificateAuthorityARN(arn),
withExternalName(principal+"/"+arn)),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"InValidInput": {
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/api/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func postCreate(_ context.Context, cr *svcapitypes.API, resp *svcsdk.CreateApiOu
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.ApiId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/apimapping/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func postCreate(_ context.Context, cr *svcapitypes.APIMapping, resp *svcsdk.Crea
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.ApiMappingId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/authorizer/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Authorizer, resp *svcsdk.Crea
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.AuthorizerId))
cre.ExternalNameAssigned = true
return cre, err
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/deployment/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Deployment, resp *svcsdk.Crea
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.DeploymentId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/integration/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Integration, resp *svcsdk.Cre
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.IntegrationId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/integrationresponse/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func postCreate(_ context.Context, cr *svcapitypes.IntegrationResponse, resp *sv
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.IntegrationResponseId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/model/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Model, resp *svcsdk.CreateMod
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.ModelId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/route/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Route, res *svcsdk.CreateRout
// NOTE(muvaf): Route ID is chosen as external name since it's the only unique
// identifier.
meta.SetExternalName(cr, aws.StringValue(res.RouteId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/routeresponse/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func postCreate(_ context.Context, cr *svcapitypes.RouteResponse, resp *svcsdk.C
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.RouteResponseId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/apigatewayv2/vpclink/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func postCreate(_ context.Context, cr *svcapitypes.VPCLink, resp *svcsdk.CreateV
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.VpcLinkId))
cre.ExternalNameAssigned = true
return cre, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/cloudfront/distribution/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Distribution, cdo *svcsdk.Cre
}

meta.SetExternalName(cr, awsclients.StringValue(cdo.Distribution.Id))
ec.ExternalNameAssigned = true
return ec, nil
}

Expand Down
1 change: 0 additions & 1 deletion pkg/controller/dynamodb/backup/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func postCreate(_ context.Context, cr *svcapitypes.Backup, resp *svcsdk.CreateBa
return managed.ExternalCreation{}, err
}
meta.SetExternalName(cr, aws.StringValue(resp.BackupDetails.BackupArn))
cre.ExternalNameAssigned = true
return cre, err
}

Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/ec2/address/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package address
import (
"context"
"sort"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -66,6 +67,7 @@ func SetupAddress(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter)
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.AddressGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient()}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithConnectionPublishers(),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient()), &tagger{kube: mgr.GetClient()}),
Expand Down Expand Up @@ -174,7 +176,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
} else {
meta.SetExternalName(cr, aws.StringValue(result.AllocateAddressOutput.AllocationId))
}
return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil
}

func (e *external) Update(ctx context.Context, mgd resource.Managed) (managed.ExternalUpdate, error) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/ec2/address/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func TestCreate(t *testing.T) {
want: want{
cr: address(withExternalName(allocationID),
withConditions(xpv1.Creating())),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"SuccessfulStandard": {
Expand Down Expand Up @@ -265,7 +265,7 @@ func TestCreate(t *testing.T) {
withSpec(v1beta1.AddressParameters{
Domain: &domainStandard,
})),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"CreateFail": {
Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/ec2/internetgateway/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package internetgateway

import (
"context"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -67,6 +68,7 @@ func SetupInternetGateway(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateL
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.InternetGatewayGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), newClientFn: ec2.NewInternetGatewayClient}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient())),
managed.WithConnectionPublishers(),
Expand Down Expand Up @@ -154,7 +156,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex

meta.SetExternalName(cr, aws.StringValue(ig.InternetGateway.InternetGatewayId))

return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil
}

func (e *external) Update(ctx context.Context, mgd resource.Managed) (managed.ExternalUpdate, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/ec2/internetgateway/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestCreate(t *testing.T) {
}),
withExternalName(igID),
withConditions(xpv1.Creating())),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"FailedRequest": {
Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/ec2/natgateway/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package natgateway

import (
"context"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -47,6 +48,7 @@ func SetupNatGateway(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimite
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.NATGatewayGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), newClientFn: ec2.NewNatGatewayClient}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient())),
managed.WithConnectionPublishers(),
Expand Down Expand Up @@ -145,7 +147,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
return managed.ExternalCreation{}, awsclient.Wrap(err, errCreate)
}
meta.SetExternalName(cr, aws.StringValue(nat.NatGateway.NatGatewayId))
return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil
}

func (e *external) Update(ctx context.Context, mgd resource.Managed) (managed.ExternalUpdate, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/ec2/natgateway/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func TestCreate(t *testing.T) {
cr: nat(withExternalName(natGatewayID),
withSpec(specNatSpec()),
),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"FailedRequest": {
Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/ec2/routetable/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package routetable

import (
"context"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -71,6 +72,7 @@ func SetupRouteTable(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimite
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.RouteTableGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), newClientFn: ec2.NewRouteTableClient}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient())),
managed.WithConnectionPublishers(),
Expand Down Expand Up @@ -169,7 +171,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex
return managed.ExternalCreation{}, awsclient.Wrap(err, errCreate)
}
meta.SetExternalName(cr, aws.StringValue(result.RouteTable.RouteTableId))
return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil
}

func (e *external) Update(ctx context.Context, mgd resource.Managed) (managed.ExternalUpdate, error) { // nolint:gocyclo
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/ec2/routetable/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func TestCreate(t *testing.T) {
cr: rt(withSpec(v1beta1.RouteTableParameters{
VPCID: aws.String(vpcID),
}), withExternalName(rtID)),
result: managed.ExternalCreation{ExternalNameAssigned: true},
result: managed.ExternalCreation{},
},
},
"CreateFailed": {
Expand Down
2 changes: 2 additions & 0 deletions pkg/controller/ec2/securitygroup/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package securitygroup

import (
"context"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -73,6 +74,7 @@ func SetupSecurityGroup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLim
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.SecurityGroupGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), newClientFn: ec2.NewSecurityGroupClient}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient())),
managed.WithConnectionPublishers(),
Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/ec2/subnet/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package subnet

import (
"context"
"time"

"github.com/aws/aws-sdk-go-v2/aws"
awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down Expand Up @@ -64,6 +65,7 @@ func SetupSubnet(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter) e
Complete(managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.SubnetGroupVersionKind),
managed.WithExternalConnecter(&connector{kube: mgr.GetClient(), newClientFn: ec2.NewSubnetClient}),
managed.WithCreationGracePeriod(3*time.Minute),
managed.WithReferenceResolver(managed.NewAPISimpleReferenceResolver(mgr.GetClient())),
managed.WithInitializers(managed.NewDefaultProviderConfig(mgr.GetClient())),
managed.WithConnectionPublishers(),
Expand Down Expand Up @@ -160,7 +162,7 @@ func (e *external) Create(ctx context.Context, mgd resource.Managed) (managed.Ex

meta.SetExternalName(cr, aws.StringValue(result.Subnet.SubnetId))

return managed.ExternalCreation{ExternalNameAssigned: true}, nil
return managed.ExternalCreation{}, nil
}

func (e *external) Update(ctx context.Context, mgd resource.Managed) (managed.ExternalUpdate, error) {
Expand Down
Loading

0 comments on commit 885129f

Please sign in to comment.