question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requesting: on error in refresh for unreachable cluster, allow marking as deleted

See original GitHub issue

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we’ll work with you on design, scheduling, etc.)

Issue details

Hi,

I’d like to propose a flag in refresh to allow the pre #1522 behavior; unreachable cluster, pods, Helm releases, etc, should be marked in the Pulumi state as deleted. As it stands now, Pulumi returns an error, and I have to work through a manual delete process.

Scenario:

I have gotten a Kubernetes cluster into a bad state. Pulumi had the state marked as “pods exist”, “charts exist”, “cluster exists”, etc, but now is unable to access any information due to the bad state. The solution I want to effect is to remove and regenerate the cluster to, nominally, bring the system state into a known-good one. The current Pulumi process is to manually edit the state to remove the relevant resources, something regrettably error prone.

To be precise, the “loss of state data” behavior specifified here https://github.com/pulumi/pulumi-kubernetes/issues/1485#issuecomment-816970573 is precisely what I want to effect here.

However, as per #1485 , this is not appropriate always; hence the request for a flag. I would suggest perhaps something as --assume-errors-are-removals.

Affected area/feature

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lblackstonecommented, Jun 20, 2022

I think it would be easier to document if we include a config parameter. Assuming the provider can pick that up on a destroy operation, let’s do both.

0reactions
stack72commented, Jun 20, 2022

That sounds perfect - with an env var it will be a strict opt-in, should we offer only env var and not a config param or should we have both?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common errors when running jobs - Amazon EMR
The following error may occur when a job cannot start and the job waits in the SUBMITTED state for 15 minutes. This can...
Read more >
Fix common cluster issues | Elasticsearch Guide [8.5] | Elastic
A red or yellow cluster status indicates one or more shards are missing or unallocated. These unassigned shards increase your risk of data...
Read more >
Viewing cluster autoscaler events - Google Cloud
To see autoscaler events, you must enable Cloud Operations for GKE in your cluster. The events won't be produced if Cloud Operations for...
Read more >
Troubleshoot common errors - Azure Policy - Microsoft Learn
This error occurs when add-pod-identity is installed on the cluster and the kube-system pods aren't excluded in aad-pod-identity. The aad-pod- ...
Read more >
Unable to connect to data source undefined
Trying to refresh a dataset from 3 different sources - two are databases ... Underlying error message: OData: Request failed: Unable to connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found