crooked-jelly-5087709/11/2019, 8:42 PM
export const nginxControllerChart = new ingressController.NginxIngressController( nginxValues );
gorgeous-egg-1692709/11/2019, 8:51 PM
. I did that in this example: https://github.com/pulumi/examples/blob/master/kubernetes-ts-multicloud/index.ts#L48-L63
crooked-jelly-5087709/11/2019, 8:51 PM
clever-sunset-7658509/11/2019, 8:57 PM
and the variable would be initialized asYou could also do?
let x: SomeType | undefined
to be undefined sometimes. But that means, wherever you use
, you will need to make sure that it is not
before you use it.
crooked-jelly-5087709/11/2019, 8:58 PM