I have a datadog helm deployment that got stuck in a pending upgrade state, and now I can’t deploy new changes to my datadog helm installation:
goldsky-infra-prod # helm_release.datadog-agent (datadog-agent) will be updated in-place
~ resource "helm_release" "datadog-agent" {
id = "datadog"
name = "datadog"
~ status = "pending-upgrade" -> "deployed"
# (26 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
goldsky-infra-prod ╷
│ Warning: v1alpha1 of the client authentication API is deprecated, use v1beta1 or above
│
│ with provider["registry.terraform.io/hashicorp/kubernetes"],
│ on cdk.tf.json line 222, in provider.kubernetes[0].exec:
│ 222: "api_version": "client.authentication.k8s.io/v1alpha1",
│
│ v1alpha1 of the client authentication API will be removed in Kubernetes
│ client versions 1.24 and above. You may need to update your exec plugin to
│ use the latest version.
╵
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan
To perform exactly these actions, run the following command to apply:
terraform apply "plan"
goldsky-infra-prod Releasing state lock. This may take a few moments...
goldsky-infra-prod helm_release.datadog-agent (datadog-agent): Modifying... [id=datadog]
goldsky-infra-prod helm_release.datadog-agent (datadog-agent): Still modifying... [id=datadog, 10s elapsed]
1 Stack deploying 0 Stacks done 0 Stacks waiting
[2022-10-05T11:49:34.204] [ERROR] default - ╷
│ Error: another operation (install/upgrade/rollback) is in progress
│
│ with helm_release.datadog-agent,
│ on cdk.tf.json line 992, in resource.helm_release.datadog-agent:
│ 992: },
goldsky-infra-prod ╷
│ Error: another operation (install/upgrade/rollback) is in progress
│
│ with helm_release.datadog-agent (datadog-agent),
│ on cdk.tf.json line 992, in resource.helm_release.datadog-agent (datadog-agent):
│ 992: },
How can I fix this helm state with cdk so that future changes to my datadog helm deployment can succeed?