helpful-vegetable-35581
08/21/2018, 11:08 AMgray-city-50684
08/21/2018, 11:13 AMgray-city-50684
08/21/2018, 11:14 AMgray-city-50684
08/21/2018, 11:14 AMhelpful-vegetable-35581
08/21/2018, 11:14 AMhelpful-vegetable-35581
08/21/2018, 11:17 AMgray-city-50684
08/21/2018, 11:23 AMgray-city-50684
08/21/2018, 11:23 AMhelpful-vegetable-35581
08/21/2018, 11:23 AMwhite-balloon-205
providers: {kubernetes: k8sProvider}
.
We've seen a few folks trip up on the difference between how CustomResources and ComponentResources get parameterized by providers, we're considering some sugar to make this simpler: https://github.com/pulumi/pulumi/issues/1802. This is effectively the same idea @helpful-vegetable-35581 notes in (b) above.
cc @microscopic-florist-22719gray-city-50684
08/21/2018, 2:03 PMgray-city-50684
08/21/2018, 2:09 PMgray-city-50684
08/21/2018, 2:26 PMgray-city-50684
08/21/2018, 2:27 PMcreamy-potato-29402
08/21/2018, 3:28 PMcreamy-potato-29402
08/21/2018, 3:29 PMgray-city-50684
08/21/2018, 3:30 PMcreamy-potato-29402
08/21/2018, 6:16 PMgray-city-50684
08/21/2018, 6:20 PMcreamy-potato-29402
08/21/2018, 6:20 PMcreamy-potato-29402
08/21/2018, 6:20 PMtall-librarian-49374
08/22/2018, 2:33 PMpulumi refresh
🙄gray-city-50684
08/22/2018, 6:16 PMgray-city-50684
08/22/2018, 6:16 PM${pulumi.getStack()}.myservice
,
resourceGroupName: config.dnsResourceGroup,
zoneName: config.dnsZoneName,
records: nginxControllerService.spec.apply(spec => spec.externalIPs),
ttl: 3600
}
);
}gray-city-50684
08/22/2018, 6:16 PMgray-city-50684
08/22/2018, 6:17 PMred-gpu-20097
08/22/2018, 6:41 PMred-gpu-20097
08/22/2018, 6:43 PMred-gpu-20097
08/22/2018, 6:54 PMgetRange({ start: 0, end: 1000 })
, and it will return an array with the exact number of the results
if you never expect more than 4000 results, you can do each(result => { /* do something with result */});
and fill an array with the results