bored-planet-52144
04/17/2020, 11:32 AMquick-greece-34196
04/17/2020, 4:08 PMbig-potato-91793
04/17/2020, 4:51 PMquick-greece-34196
04/17/2020, 6:19 PMpulumi.ComponentResource
is instantiated in the service program. What is going on? Is there anything I am missing?acceptable-stone-35112
04/17/2020, 9:13 PMbrave-glass-88708
04/17/2020, 9:42 PMfast-dinner-32080
04/17/2020, 10:23 PMfast-dinner-32080
04/17/2020, 10:26 PMpulumi stack ls | grep "*" | awk '{print $1}' | sed 's/\*//g'
quiet-wolf-18467
04/18/2020, 11:00 AMquiet-wolf-18467
04/18/2020, 11:01 AMtall-librarian-49374
04/18/2020, 7:04 PMmammoth-journalist-45153
04/18/2020, 9:17 PMhigh-orange-18933
04/19/2020, 12:27 AMsticky-lighter-73941
04/19/2020, 1:43 PMbrave-glass-88708
04/19/2020, 9:05 PMimport * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
const config = new pulumi.Config();
const provider = new k8s.Provider("kubernetes", { kubeconfig: config.require("cluster-config") });
const ta = new k8s.core.v1.ServiceAccount("test-account", {
metadata: {
name: "test-account",
namespace: "default"
}
}, { provider });
export const tokenName = pulumi.interpolate `${ta.metadata.namespace}/${ta.secrets[0].name}`
type KubernetesData = { [key: string]: string }
export const token = k8s.core.v1.Secret.get(tokenName, tokenName).data.apply(v => {
return (<KubernetesData>v)["token"]
});
// export const token = k8s.core.v1.Secret.get("default/test-account-token-7rz8w", "default/test-account-token-7rz8w").data.apply(v => {
// return (<KubernetesData>v)["token"]
// });
1. Argument of type 'Output<string>' is not assignable to parameter of type 'string'.ts(2345)
2. Parameter 'v' implicitly has an 'any' type.
however, if i use the call that is commented or this
export const token = k8s.core.v1.Secret.get("harcoded-works", tokenName).data.apply(v => {
return (<KubernetesData>v)["token"]
});
is this here a less verbose method to getting values from one resource and feed it into another?faint-oil-7535
04/19/2020, 11:09 PMhigh-morning-17948
04/20/2020, 1:07 AM.pulumi/ci.json
to use production stack on release tag instead of master branch for Github Actions?clean-autumn-55516
04/20/2020, 2:09 AM"scripts": {
"postinstall": "npx prisma generate"
}
Am I running into a limitation here? Is there a way to have pulumi deploy a function with a custom package.json to achieve a post install script?quick-greece-34196
04/20/2020, 2:32 AMconst k8sProvider = new k8s.Provider(`${prefix}-k8s-provider`, {
kubeconfig: clusterStack.getOutput("kubeConfig"),
});
...
const providers = {
gcp: gcpProvider,
kubernetes: k8sProvider,
}
and then passing it to a component resource:
const externalDNS = new ExternalDNS(
`${prefix}-external-dns`,
{
labels,
domain,
zonePolicy: "sync",
nodeSelector: {
[`${domain}/nodeType`]: "main"
}
},
{ providers },
);
I am getting an error that seems to indicate the provider is wrong ? Any pointers I can use, I am out of ideas...
error: Missing required configuration variable 'customer-services:k8sMasterPassword'
please set a value using the command `pulumi config set customer-services:k8sMasterPassword <value>`
mysterious-australia-14256
04/20/2020, 10:32 AMclean-eve-27532
04/20/2020, 4:04 PMgray-yak-9058
04/20/2020, 4:19 PMplain-businessperson-30883
04/20/2020, 6:07 PMgetOutputSync
was removed and the getOutputValue
was introduced. Is there more info on the changes around it? I see that the ā¦Value
behaves differently from the ā¦Sync
, but I canāt find any docs on that. Since it uses Promises, I believe the result will be different, right? Is there more info about it? Thanks in advance!acceptable-stone-35112
04/20/2020, 8:01 PMfaint-oil-7535
04/20/2020, 9:00 PMlimited-rainbow-51650
04/20/2020, 9:04 PMpulumi.ComponentResource
. In the constructor of this component, I create a gcp.compute.Network
. When unit testing, in the setMocks
function, as in the examples, I do a switch(type)
and I only left the default
clause in there with a console.log
statement. When running the tests, I create an instance of my component. I expect the newResource
callback to be invoked twice but I only see it for my component, not for the inner gcp.compute.Network
. Are my expectations wrong?orange-policeman-59119
04/20/2020, 11:29 PMpulumi login --gcs
in two locations at once and try to deploy the same stack?colossal-room-15708
04/21/2020, 1:23 AMv2.0.0
released now?
pulumi new
warning: A new version of Pulumi is available. To upgrade from version '1.14.1' to '2.0.0', run
$ curl -sSL <https://get.pulumi.com> | sh
prehistoric-account-60014
04/21/2020, 1:51 AM--yes
option. Is this intentional?witty-crayon-40181
04/21/2020, 9:24 AMwitty-crayon-40181
04/21/2020, 9:24 AMwhite-balloon-205
04/21/2020, 2:04 PMwitty-crayon-40181
04/21/2020, 7:55 PM