File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
pkg/controller/ecs/service Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 3737 name : example
3838 providerConfigRef :
3939 name : example
40+ ---
41+ apiVersion : ecs.aws.crossplane.io/v1alpha1
42+ kind : Service
43+ metadata :
44+ name : nginx-test-ecs
45+ annotations :
46+ task-definition-network-mode : awsvpc
47+ spec :
48+ forProvider :
49+ cluster : arn:aws:ecs:us-east-1:123456789:cluster/crossplane-ecs-controller-test
50+ launchType : EC2
51+ region : us-east-1
52+ schedulingStrategy : DAEMON
53+ networkConfiguration :
54+ awsvpcConfiguration :
55+ assignPublicIP : DISABLED
56+ subnets :
57+ - subnet-06338caec7dcf
58+ - subnet-02a8df89fdafa
59+ taskDefinition : arn:aws:ecs:us-east-1:123456789:task-definition/nginx:3
60+ providerConfigRef :
61+ name : providerconfig-aws
62+ ---
63+ apiVersion : ecs.aws.crossplane.io/v1alpha1
64+ kind : Service
65+ metadata :
66+ name : filebeat-test
67+ annotations :
68+ task-definition-network-mode : host
69+ spec :
70+ forProvider :
71+ cluster : arn:aws:ecs:us-east-1:123456789:cluster/crossplane-ecs-controller-test
72+ launchType : EC2
73+ region : us-east-1
74+ schedulingStrategy : DAEMON
75+ taskDefinition : arn:aws:ecs:us-east-1:123456789:task-definition/pratyush-filebeat:1
76+ providerConfigRef :
77+ name : providerconfig-aws
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ func generateNetworkConfiguration(cr *svcapitypes.Service) *svcsdk.NetworkConfig
537537 networkConfiguration := & svcsdk.NetworkConfiguration {}
538538
539539 if cr .Spec .ForProvider .NetworkConfiguration == nil {
540- return networkConfiguration
540+ return nil
541541 }
542542
543543 if cr .Spec .ForProvider .NetworkConfiguration .AWSvpcConfiguration != nil {
You can’t perform that action at this time.
0 commit comments