This message was deleted.
# golang
s
This message was deleted.
l
what version of the pulumi go SDK are you using?
w
v2.10.2
l
Can you share your code? It looks like this is probably an apply/all call triggering this?
w
it's a large-ish monolithic project so not comfortable sending the whole codebase, but id be happy to hop on a call?
actually i narrowed it down, i may have found a bug (if you can call it that) with the k8s lib hopping on a meeting now-- then i'll post details and tell me if you think it's a 🐛
👍 1
ok here's the issue (very minimal example)
Copy code
func Deployment(ctx *pulumi.Context, strategy *appsv1.DeploymentStrategyArgs) {
	args := &appsv1.DeploymentArgs{
		Metadata: metav1.ObjectMetaArgs{
			// fields omitted
		},
		Spec: &appsv1.DeploymentSpecArgs{
			// other fields omitted
			Strategy: appsv1.DeploymentStrategyPtr(strategy),
		},
	}

	_, _ = appsv1.NewDeployment(ctx, "deploy", args)
}
when passing in
nil
strategy, i was seeing the issue above fixed by checking for
if strategy == nil
rather than using the
appsv1.DeploymentStrategyPtr
helper seems like a bug-- i would've expected the
appsv1.DeploymentStrategyPtr
helper to handle nils?
l
Would you mind opening an issue?