big-potato-91793
03/19/2020, 9:36 PMpulumi new
we could our template base on the one that pulumi is offering.. like adding eslint or other thingsgreen-morning-1318
03/19/2020, 11:08 PMpulumi update --stack retgits/dev --cwd ~/project/pulumi --skip-preview
Updating (dev):
@ Updating....
Permalink: <https://app.pulumi.com/retgits/acmeserverless-payment/dev/updates/5>
error: failed to discover plugin requirements: failed to execute program cmd: exit status 1
Exited with code exit status 255
It runs fine on my Mac, so would anyone have thoughts on how to debug this?calm-quill-21760
03/20/2020, 12:14 AMThis XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>2607D7593AFB741F</RequestId>
<HostId>
lYM2+bELcS/KWDuxMZaB3gDjhVVyuimL2ga/rNwJYjkrXbtmkcAh5xiFnO322owuOBrazv+4LqA=
</HostId>
</Error>
adorable-action-51248
03/20/2020, 10:16 AMadorable-action-51248
03/20/2020, 11:34 AMadorable-action-51248
03/20/2020, 4:39 PMbreezy-hamburger-69619
03/20/2020, 5:46 PMgreen-morning-1318
03/20/2020, 6:06 PMbreezy-hamburger-69619
03/20/2020, 7:01 PMcolossal-room-15708
03/21/2020, 3:53 AMpulumi.asset.FileArchive
ignore folders with .
? It looks like it's not packaging up my .python_packages
folder.bland-guitar-34582
03/21/2020, 6:10 AM// <https://github.com/pulumi/kubernetes-guides/blob/master/azure/03-cluster-configuration/index.ts>
const aksProvider = new k8s.Provider("aksProvider", {
kubeconfig: aksCluster.kubeAdminConfigRaw
});
const aksRoleBinding = new k8s.rbac.v1.RoleBinding(`${config.prefix}-aad-integration`, ..., { provider: aksProvider })
polite-motherboard-78438
03/21/2020, 3:51 PMtest("It creates the correct configMap", done => {
fluentBitChart
.getResource("v1/ConfigMap", "fluent-bit-config")
.apply(cm => {
// TODO check if the data has correct value
console.log(cm.urn);
done();
});
});
Note that fluentBitChart is an instance of "k8s.helm.v3.Chart".
Baically I want to write a test to validate the Helm resource received the correct values, some of them are reading from config etcacoustic-leather-88378
03/21/2020, 9:17 PMCustomResource
, for example:
...
new CustomResource("test-cluster", {
apiVersion: "<http://acid.zalan.do/v1|acid.zalan.do/v1>",
kind: "postgresql",
metadata: {
name: "test-cluster"
},
spec: {
...
}
}
...
and that custom resource results in other new resources being created by an operator. For example a StatefuleSet
, multiple `Secret`'s etc.
If, in the same Pulumi program, after creating the CustomResource
I want to import and use those new resources (created by the operator, when the new CustomResource
above was created), how would I import them?
Currently pulumi up
will fail on the preview with a "resource ... does not exist" error, since the resource that would be created once run, isn't there yet. Is there an elegant/any way to handle this?green-morning-1318
03/21/2020, 11:18 PMgreen-morning-1318
03/21/2020, 11:19 PMfamous-kite-69533
03/22/2020, 5:53 PMbrainy-table-30266
03/22/2020, 6:50 PMfamous-kite-69533
03/22/2020, 9:35 PMvictorious-scientist-9866
03/23/2020, 12:40 AMvictorious-scientist-9866
03/23/2020, 12:41 AM.htpasswd
file into a Kubernetes Secret to be mounted in a containervictorious-scientist-9866
03/23/2020, 12:45 AMvictorious-scientist-9866
03/23/2020, 2:05 AM.htpasswd
example since the file contents are already hashed/secure but it doesn't work for the example of an image pull secret since the contents are only base64 encoded and can easily be decoded. Ideally, unencrypted secret data wouldn't be commited to the git repository storing my deployment files.big-restaurant-51338
03/23/2020, 12:02 PMcompute.Instance
? I tried this, but I get a KeyError
# actual vm creation
instance = compute.Instance("instance",
machine_type=config.require('type'),
boot_disk={
"initializeParams": {
"image": config.require('image')
}
},
network_interfaces=[
{
"subnetwork": parentStack.get_output('subnet_id'),
}
],
# metadata={
# "startup-script": init_script
# },
zone = config.require('zone'),
tags = ["mytags"]
)
# Register the DNS record
dns_name = parentStack.get_output('private_dns_zone').apply(lambda a: f"instance.{a}")
instance_recordset = dns.RecordSet("instance-recordset",
managed_zone = parentStack.get_output('private_dns_name'),
name = dns_name,
rrdatas = [ instance.network_interfaces[0]['networkIp'] ],
ttl = 3600,
type = "A",
opts=pulumi.ResourceOptions(depends_on=[instance]))
famous-kite-69533
03/23/2020, 12:10 PMk8s.helm.v2.Chart(...)
but even with v2 Pulumi gives me skipping unknown hook: "crd-install"
. How can I ensure the CRDs are installed? I can't find a setting or something like that in the docs. Thanks!limited-librarian-23694
03/23/2020, 4:00 PMpulumi up
, without shelling out to the CLI?busy-umbrella-36067
03/23/2020, 5:27 PMPULUMI_TEST_MODE
mentioned so I’m guessing thats an env var, is there any other way to toggle it? pulumi.runtime.setConfig()
?better-rainbow-14549
03/24/2020, 11:21 AMerror: Running program 'C:\dev\misc\pulumi-test' failed with an unhandled exception:
Error: EBUSY: resource busy or locked, open '\\.\pipe\pulumi2823058552\invoke_req'
better-rainbow-14549
03/24/2020, 11:21 AMsalmon-account-74572
03/24/2020, 4:21 PMpowerline-go
(https://github.com/justjanne/powerline-go/) that shows the currently selected Pulumi stack in my Powerline prompt. 🙂brave-ambulance-98491
03/24/2020, 5:07 PMrefresh
corrupt pulumi state file"?
https://github.com/pulumi/pulumi/issues/3583