mirror of https://github.com/kubernetes/kops.git
dump: actually dump the gateway objects
I had forgotten to populate the object itself, so it was not appearing in the raw dump.
This commit is contained in:
parent
511f94ba30
commit
a6b963b127
|
@ -142,6 +142,7 @@ func ListResourcesAWS(cloud awsup.AWSCloud, clusterInfo resources.ClusterInfo) (
|
||||||
resourceTrackers["internet-gateway:"+igwID] = &resources.Resource{
|
resourceTrackers["internet-gateway:"+igwID] = &resources.Resource{
|
||||||
Name: FindName(igw.Tags),
|
Name: FindName(igw.Tags),
|
||||||
ID: igwID,
|
ID: igwID,
|
||||||
|
Obj: igw,
|
||||||
Type: "internet-gateway",
|
Type: "internet-gateway",
|
||||||
Dumper: DumpInternetGateway,
|
Dumper: DumpInternetGateway,
|
||||||
Deleter: DeleteInternetGateway,
|
Deleter: DeleteInternetGateway,
|
||||||
|
@ -1159,6 +1160,7 @@ func ListEgressOnlyInternetGateways(cloud fi.Cloud, vpcID, clusterName string) (
|
||||||
Name: FindName(o.Tags),
|
Name: FindName(o.Tags),
|
||||||
ID: aws.StringValue(o.EgressOnlyInternetGatewayId),
|
ID: aws.StringValue(o.EgressOnlyInternetGatewayId),
|
||||||
Type: "egress-only-internet-gateway",
|
Type: "egress-only-internet-gateway",
|
||||||
|
Obj: o,
|
||||||
Dumper: DumpEgressOnlyInternetGateway,
|
Dumper: DumpEgressOnlyInternetGateway,
|
||||||
Deleter: DeleteEgressOnlyInternetGateway,
|
Deleter: DeleteEgressOnlyInternetGateway,
|
||||||
Shared: HasSharedTag(ec2.ResourceTypeEgressOnlyInternetGateway+":"+aws.StringValue(o.EgressOnlyInternetGatewayId), o.Tags, clusterName),
|
Shared: HasSharedTag(ec2.ResourceTypeEgressOnlyInternetGateway+":"+aws.StringValue(o.EgressOnlyInternetGatewayId), o.Tags, clusterName),
|
||||||
|
|
|
@ -38,6 +38,7 @@ func buildNatGatewayResource(ngw *ec2.NatGateway, forceShared bool, clusterName
|
||||||
r := &resources.Resource{
|
r := &resources.Resource{
|
||||||
Name: id,
|
Name: id,
|
||||||
ID: id,
|
ID: id,
|
||||||
|
Obj: ngw,
|
||||||
Type: TypeNatGateway,
|
Type: TypeNatGateway,
|
||||||
Dumper: DumpNatGateway,
|
Dumper: DumpNatGateway,
|
||||||
Deleter: DeleteNatGateway,
|
Deleter: DeleteNatGateway,
|
||||||
|
|
Loading…
Reference in New Issue