Skip to content

Instantly share code, notes, and snippets.

@rraval
Created April 25, 2021 16:50
Show Gist options
  • Save rraval/f85165414552516bde8dec6045c3621e to your computer and use it in GitHub Desktop.
Save rraval/f85165414552516bde8dec6045c3621e to your computer and use it in GitHub Desktop.
Manually rewriting pulumi state to work around https://github.com/pulumi/pulumi/issues/3979
--- export.json 2021-04-25 12:41:04.521802171 -0400
+++ import.json 2021-04-25 12:44:46.172536156 -0400
@@ -580,7 +580,7 @@
"provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:gcp::default_5_0_0::e7711df7-8689-4b4b-8243-8de083d8a263"
},
{
- "urn": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed",
+ "urn": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider",
"custom": true,
"id": "a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"type": "pulumi:providers:kubernetes",
@@ -1072,7 +1072,7 @@
]
},
"parent": "urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account::valheimctl",
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -1303,7 +1303,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::gcp:compute/address:Address::valheim-ip"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -1491,7 +1491,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::gcp:compute/disk:Disk::valheim-pd0"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -1614,7 +1614,7 @@
"type": "Opaque"
},
"parent": "urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server::valheim",
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -1770,7 +1770,7 @@
}
},
"parent": "urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server::valheim",
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -1956,7 +1956,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::gcp:compute/disk:Disk::valheim-pd1"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2143,7 +2143,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::gcp:compute/disk:Disk::valheim-pd2"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2315,7 +2315,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$zeroindexed:valheim:disk$kubernetes:core/v1:PersistentVolume::valheim-config"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2456,7 +2456,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$kubernetes:core/v1:Service::valheim-odin"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2633,7 +2633,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$zeroindexed:valheim:disk$kubernetes:core/v1:PersistentVolume::valheim-steam"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2805,7 +2805,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$zeroindexed:valheim:disk$kubernetes:core/v1:PersistentVolume::valheim-backup"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -2937,7 +2937,7 @@
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$kubernetes:rbac.authorization.k8s.io/v1:Role::valheimctl-odin-proxy",
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account$kubernetes:core/v1:ServiceAccount::account"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -3393,7 +3393,7 @@
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$zeroindexed:valheim:disk$kubernetes:core/v1:PersistentVolumeClaim::valheim-config",
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$zeroindexed:valheim:disk$kubernetes:core/v1:PersistentVolumeClaim::valheim-steam"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -3510,7 +3510,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$kubernetes:apps/v1:StatefulSet::valheim"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -3623,7 +3623,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$kubernetes:apps/v1:StatefulSet::valheim"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -3736,7 +3736,7 @@
"dependencies": [
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheim:server$kubernetes:apps/v1:StatefulSet::valheim"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -3885,7 +3885,7 @@
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$kubernetes:rbac.authorization.k8s.io/v1:Role::valheimctl-statefulset-scale",
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account$kubernetes:core/v1:ServiceAccount::account"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -4037,7 +4037,7 @@
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$kubernetes:rbac.authorization.k8s.io/v1:Role::valheimctl-pod-get",
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account$kubernetes:core/v1:ServiceAccount::account"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -4189,7 +4189,7 @@
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$kubernetes:rbac.authorization.k8s.io/v1:Role::valheimctl-statefulset-get",
"urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account$kubernetes:core/v1:ServiceAccount::account"
],
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"propertyDependencies": {
"apiVersion": null,
"kind": null,
@@ -4267,7 +4267,7 @@
},
"parent": "urn:pulumi:gcloud::zeroindexed::zeroindexed:valheimctl$zeroindexed:k8s-external-service-account::valheimctl",
"external": true,
- "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
+ "provider": "urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider::a22b0294-4801-42fa-8df4-f7bdbf31d34a",
"additionalSecretOutputs": [
"data",
"stringData"
s/urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::zeroindexed/urn:pulumi:gcloud::zeroindexed::pulumi:providers:kubernetes::kubernetes-provider/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment