worried-engineer-33884
04/10/2020, 5:46 PMcall
not being mocked as expected. Works fine on 11.x. Anyone else notice this?famous-translator-53768
04/10/2020, 6:56 PMgreen-morning-1318
04/10/2020, 7:13 PMworried-engineer-33884
04/10/2020, 7:53 PMfast-dinner-32080
04/10/2020, 9:36 PMrancher2:index/namespace:Namespace: (update)
[id=ua-dev]
[urn=urn:pulumi:stg-k8s-c01::k8s-cluster-projects::rancher2:index/namespace:Namespace::ns]
[provider=urn:pulumi:stg-k8s-c01::k8s-cluster-projects::pulumi:providers:rancher2::default_1_5_0::5ee76677-bc06-416a-a367-1be4dd7fa198]
~ labels: {
- <http://cattle.io/creator|cattle.io/creator> : "norman"
- <http://field.cattle.io/projectId|field.cattle.io/projectId>: "id"
}
and I have tried all these but doesn't seem to work. I am probably providing the string incorrect but I am having a hard time finding an example.
new CustomResourceOptions
{
IgnoreChanges =
{
{"labels.\"<http://cattle.io/creator|cattle.io/creator>\""}
}
}
new CustomResourceOptions
{
IgnoreChanges =
{
{"<http://labels.cattle.io/creator|labels.cattle.io/creator>"}
}
}
new CustomResourceOptions
{
IgnoreChanges =
{
{"labels[<http://cattle.io/creator|cattle.io/creator>]"}
}
}
new CustomResourceOptions
{
IgnoreChanges =
{
{"labels[\"<http://cattle.io/creator|cattle.io/creator>\"]"}
}
}
polite-motherboard-78438
04/11/2020, 2:59 PMpulumi preview
, I get the following diff:
+ ├─ kubernetes:<http://cert-manager.io:ClusterIssuer|cert-manager.io:ClusterIssuer> letsencrypt-prod create
- ├─ kubernetes:helm.sh:Chart letsencrypt-prod delete
- │ └─ kubernetes:<http://cert-manager.io:ClusterIssuer|cert-manager.io:ClusterIssuer> cert-maanger/letsencrypt-prod delete
The resource that Pulumi is trying to create is the same as the one it is trying to delete. (On K8s). I am not sure since when this happen, but It could be because the change the way the "lets-encrypt" resource is managed in Pulumi, from an Helm Chart to a Custom resource. Still
If I run pulumi up
it fails, saying with "error":
resource cert-maanger/letsencrypt-prod was not successfully created by the Kubernetes API server : <http://clusterissuers.cert-manager.io|clusterissuers.cert-manager.io> "letsencrypt-prod" already exists. That´s normal, since Pulumi is trying to create a resource that already exists.
So I am trying to converge the pulumi state with the K8s cluster state.
First I tried to manually delete the "letsencrypt" resource by it´s urn like so: pulumi state delete urn:pulumi:dev::brunopazdev::kubernetes:<http://helm.sh/v2/:letsencrypt-prod|helm.sh/v2/:letsencrypt-prod>
It gave an error: error:
This resource can't be safely deleted because the following resources depend on it: cert-maanger/letsencrypt-prod" (urn:pulumi:dev::brunopazdev::kubernetes:<http://helm.sh/v2:Chart$kubernetes:cert-manager.io/v1alpha2:ClusterIssuer::cert-maanger/letsencrypt-prod|helm.sh/v2:Chart$kubernetes:cert-manager.io/v1alpha2:ClusterIssuer::cert-maanger/letsencrypt-prod>)
Ok. makes sense. Let´s try to delete de dependent resource first:
pulumi state delete urn:pulumi:dev::brunopazdev::kubernetes:<http://helm.sh/v2:Chart$kubernetes:cert-manager.io/v1alpha2:ClusterIssuer::cert-maanger/letsencrypt-prod|helm.sh/v2:Chart$kubernetes:cert-manager.io/v1alpha2:ClusterIssuer::cert-maanger/letsencrypt-prod> --force -y
Another error: "*error: No such resource "urn😛ulumi:dev::brunopazdev::kubernetes:helm.sh/v2:Chartert-manager.io/v1alpha2:ClusterIssuer::cert-maanger/letsencrypt-prod" exists in the current state*"
So I have a resource that depends on a resource that doesnt exist??
Has anybody have an idea how to fix this? Do I have to edit the state manually to remove this resources and then maybe importing the existing one from the Cluster state?
Thank you.swift-oxygen-28374
04/11/2020, 6:54 PMconst snapshot = new aws.ebs.Snapshot("Unattached volume", {
tags: {
Name: ebsVolume.tags["Name"],
Cleanup: "true",
Who: "satish",
When: "04102020"
},
volumeId: volumeId,
});
// const snapshotId = <http://snapshot.id|snapshot.id>.apply(s => `${s}`);
const snapshotId = pulumi.interpolate `prefix${<http://snapshot.id|snapshot.id>}suffix`
console.log("Created snapshot " + snapshotId + " for volume " + volumeId);
Created snapshot Calling [toString] on an [Output<T>] is not supported.
To get the value of an Output<T> as an Output<string> consider either:
1: o.apply(v => `prefix${v}suffix`)
2: pulumi.interpolate `prefix${v}suffix`
See <https://pulumi.io/help/outputs> for more details.
gorgeous-elephant-23271
04/11/2020, 8:38 PMpulumi new
I get Sorry, 'projectname' is not a valid project name. A project with this name already exists.
, and when I do pulumi stack init
I get error: no Pulumi project found in the current working directory
gorgeous-elephant-23271
04/11/2020, 8:39 PMpulumi.yaml
file into this folder, but when I ran pulumi stack init
it did nothing (though it created the stack on <http://app.pulumi.com|app.pulumi.com>
)gorgeous-elephant-23271
04/11/2020, 8:40 PMgorgeous-elephant-23271
04/11/2020, 8:40 PMv1.14.0
sparse-state-34229
04/12/2020, 7:37 AMsparse-state-34229
04/12/2020, 7:37 AMacceptable-stone-35112
04/12/2020, 8:35 AMstale-minister-93676
04/13/2020, 12:29 PMconst f = new vsphere.Folder(....)
and now I'm trying to use it with `vsphere.getVirtualMachine({ name: ${f.path}/vm-name
})` but I'm getting error fetching virtual machine: vm 'Calling [toString] on an [Output<T>] is not supported.
Anyone know how to get the path as a string?wonderful-dog-9045
04/13/2020, 12:35 PMfast-summer-37905
04/13/2020, 2:02 PMfast-dinner-32080
04/13/2020, 5:04 PMstale-minister-93676
04/13/2020, 7:09 PMcool-egg-852
04/13/2020, 8:32 PMbrave-angle-33257
04/13/2020, 9:13 PMOutputs
situation?orange-address-79071
04/13/2020, 9:58 PMcurved-zoo-38252
04/14/2020, 1:14 AMbetter-rainbow-14549
04/14/2020, 2:31 PMnpm ERR! Unexpected end of JSON input while parsing near '...86668803","dependenci'
ever since 1.14.1 - in the debug log it prints
345 http fetch GET 200 <https://registry.npmjs.org/@pulumi%2fpulumi> 38ms (from cache)
346 silly fetchPackageMetaData error for @pulumi/pulumi@^1.14.1 Unexpected end of JSON input while parsing near '...86668803","dependenci'
white-balloon-205
04/14/2020, 4:19 PMstale-minister-93676
04/14/2020, 4:20 PMpulumi login s3://...
?elegant-hydrogen-81987
04/14/2020, 5:05 PMstale-minister-93676
04/14/2020, 5:34 PMstale-minister-93676
04/14/2020, 5:36 PMpulumi refresh
but that doesn't seem to be able to pull in the existing components for us (from kubernetes)some-football-23966
04/14/2020, 6:55 PMsome-football-23966
04/14/2020, 6:55 PMgreen-morning-1318
04/14/2020, 7:02 PMsome-football-23966
04/14/2020, 7:07 PMgreen-morning-1318
04/14/2020, 7:08 PMbroad-dog-22463
04/14/2020, 7:10 PMsome-football-23966
04/14/2020, 7:12 PMbroad-dog-22463
04/14/2020, 7:13 PMsome-football-23966
04/14/2020, 7:15 PMbroad-dog-22463
04/14/2020, 7:17 PMsome-football-23966
04/14/2020, 7:19 PMbroad-dog-22463
04/14/2020, 7:20 PMsome-football-23966
04/14/2020, 7:20 PMbroad-dog-22463
04/14/2020, 7:21 PMsome-football-23966
04/14/2020, 7:24 PMbroad-dog-22463
04/14/2020, 7:33 PMsome-football-23966
04/14/2020, 7:43 PMbroad-dog-22463
04/14/2020, 7:44 PMsome-football-23966
04/14/2020, 7:47 PMbroad-dog-22463
04/14/2020, 7:49 PMsome-football-23966
04/14/2020, 7:50 PMbroad-dog-22463
04/14/2020, 7:51 PMsome-football-23966
04/14/2020, 7:52 PMbroad-dog-22463
04/14/2020, 7:52 PMsome-football-23966
04/14/2020, 7:53 PMbroad-dog-22463
04/14/2020, 7:54 PMsome-football-23966
04/14/2020, 7:54 PMbroad-dog-22463
04/14/2020, 7:54 PMsome-football-23966
04/14/2020, 7:55 PMbroad-dog-22463
04/14/2020, 7:55 PMsome-football-23966
04/14/2020, 7:56 PMbroad-dog-22463
04/14/2020, 7:56 PMsome-football-23966
04/14/2020, 7:57 PMbroad-dog-22463
04/14/2020, 7:57 PMsome-football-23966
04/14/2020, 7:58 PMbroad-dog-22463
04/14/2020, 8:00 PMhttps://www.youtube.com/watch?v=kX_3Wdft0Ms▾
some-football-23966
04/14/2020, 8:03 PMbroad-dog-22463
04/14/2020, 8:07 PM