-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests to ensure resource reference is not replaced by controller (#…
…220) Issue [#1880](aws-controllers-k8s/community#1880) Description of changes: These tests ensure that after an update, the controller won't replace the resource reference with the ID itself. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
- Loading branch information
1 parent
ddb3682
commit ffc48b2
Showing
4 changed files
with
144 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: ec2.services.k8s.aws/v1alpha1 | ||
kind: InternetGateway | ||
metadata: | ||
name: $INTERNET_GATEWAY_NAME | ||
spec: | ||
vpcRef: | ||
from: | ||
name: $VPC_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: ec2.services.k8s.aws/v1alpha1 | ||
kind: RouteTable | ||
metadata: | ||
name: $ROUTE_TABLE_NAME | ||
spec: | ||
routes: | ||
- destinationCIDRBlock: $DEST_CIDR_BLOCK | ||
gatewayRef: | ||
from: | ||
name: $INTERNET_GATEWAY_NAME | ||
vpcRef: | ||
from: | ||
name: $VPC_NAME | ||
tags: | ||
- key: $TAG_KEY | ||
value: $TAG_VALUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters