https://pulumi.com logo
#golang
Title
# golang
b

boundless-telephone-98269

02/12/2022, 11:09 PM
Ah, I managed to do it somehow. This feels very hacky tho... or is this just the right way to do it? Converting
pulumi.AnyOutput
->
pulumi.StringPtrOutput
by:
Copy code
output := chart.GetResource("v1/Service", "onepassword-connect", Namespace).ApplyT(
			func(r interface{}) (pulumi.StringPtrOutput, error) {
				return r.(*corev1.Service).Spec.ClusterIP(), nil
			},
		).(pulumi.AnyOutput)
		clusterIP := pulumi.StringPtrOutput{OutputState: output.OutputState} // <-------
3 Views