Seems the provider failed to identify resource apply failure when failed calling webhook, which the state is updated and causing no changes detected when re-apply
│ Error: inference failed to run apply: error when applying patch:
│ {"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"karpenter.sh/v1alpha5\",\"kind\":\"Provisioner\",\"metadata\":{\"annotations\":{},\"name\":\"inference\"},\"spec\":{\"consolidation\":{\"enabled\":true},\"labels\":{\"platform\":\"inference\"},\"limits\":{\"resources\":{\"cpu\":100}},\"provider\":{\"securityGroupSelector\":{\"karpenter.sh/discovery/Experiment\":\"Experiment\"},\"subnetSelector\":{\"karpenter.sh/discovery/Experiment\":\"Experiment\"},\"tags\":{\"karpenter.sh/discovery/Experiment\":\"Experiment\"}},\"requirements\":[{\"key\":\"node.kubernetes.io/instance-type\",\"operator\":\"In\",\"values\":[\"t3.medium\",\"t3.large\",\"t3.xlarge\",\"t3.2xlarge\"]},{\"key\":\"kubernetes.io/arch\",\"operator\":\"In\",\"values\":[\"amd64\"]},{\"key\":\"karpenter.sh/capacity-type\",\"operator\":\"In\",\"values\":[\"spot\"]}],\"taints\":[{\"effect\":\"NoSchedule\",\"key\":\"platform\",\"value\":\"inference\"}],\"ttlSecondsUntilExpired\":2592000}}\n"}},"spec":{"consolidation":{"enabled":true},"limits":{"resources":{"cpu":100}},"ttlSecondsUntilExpired":2592000}}
│ to:
│ Resource: "karpenter.sh/v1alpha5, Resource=provisioners", GroupVersionKind: "karpenter.sh/v1alpha5, Kind=Provisioner"
│ Name: "inference", Namespace: ""
│ for: "/tmp/514546638kubectl_manifest.yaml": Internal error occurred: failed calling webhook "defaulting.webhook.provisioners.karpenter.sh": Post "[https://karpenter.karpenter.svc:443/default-resource?timeout=10s](https://karpenter.karpenter.svc/default-resource?timeout=10s)": no endpoints available for service "karpenter"
│
│ with module.helm.kubectl_manifest.provisioners["inference"],
│ on helm-core/karpenter.tf line 34, in resource "kubectl_manifest" "provisioners":
│ 34: resource "kubectl_manifest" "provisioners" {
│
╵
Seems the provider failed to identify resource apply failure when failed calling webhook, which the state is updated and causing no changes detected when re-apply