bland-monitor-37952
11/07/2025, 12:16 PMignoreChanges do when another property on the resource is updated?
Context: We have short-lived K8s creds, and a dynamic resource provider that is doing some basic checks against our cluster that aren't supported by @pulumi/kubernetes directly. If I pass in a kubeconfig, then more or less every time we run pulumi up it sees a change on the resource, because the kubeconfig has changed. But if I ignore changes to kubeconfig and it only ever uses the initial value from create, then within a few hours the embedded TLS certs will have expired.
What I need is for kubeconfig changes on their own to not trigger an update, but if any other property changes it should use the latest value of kubeconfig that was provided alongside the other updated property to make the request. Is that possible?echoing-dinner-19531
11/07/2025, 12:31 PMbland-monitor-37952
11/07/2025, 1:20 PMdiff was one of the functions you could provide. Thanks!bland-monitor-37952
11/07/2025, 3:43 PMdiff function...echoing-dinner-19531
11/07/2025, 3:44 PMbland-monitor-37952
11/07/2025, 3:46 PMasync diff(
_id: string,
olds: WaitForCrdsProviderOutputs,
news: WaitForCrdsProviderInputs,
): Promise<dynamic.DiffResult> {
const changes =
olds.crds.length !== news.crds.length || olds.crds.sort() !== news.crds.sort();
return {
changes,
replaces: changes ? ['crds'] : undefined,
};
},bland-monitor-37952
11/07/2025, 3:47 PMcrds is just an array of stringsbland-monitor-37952
11/07/2025, 3:48 PMbland-monitor-37952
11/07/2025, 3:48 PMchanges is true. So I'm clearly doing something very silly...bland-monitor-37952
11/07/2025, 3:50 PMechoing-dinner-19531
11/07/2025, 3:50 PMbland-monitor-37952
11/07/2025, 3:50 PMechoing-dinner-19531
11/07/2025, 3:51 PMbland-monitor-37952
11/07/2025, 3:59 PMbland-monitor-37952
11/07/2025, 4:00 PMechoing-dinner-19531
11/07/2025, 4:13 PM