chilly-rainbow-79265
08/24/2020, 6:19 PMtype Cassandra struct {
pulumi.ResourceState
}
func NewCassandra(ctx *pulumi.Context, name string, opts ...pulumi.ResourceOption) (*MyComponent, error) {
cassandra := &Cassandra{}
err := ctx.RegisterComponentResource("pkg:index:NewCassandra", name, cassandra, opts...)
if err != nil {
return nil, err
}
return cassandra, nil
}
Here is it possible to some how, I can add a method for
cassandra.Scale()
or more preferably, when I increase the node from 1-2 it'll get added to the cluster, that means, the state change event from the engine, should it be possible to do something there.
Main thing I want is the capability to plug the scale method with increase/decrease number of nodes.
ie, if I change the number of nod*es from 1 -> 2 it should trigger a scale up* op, and if 2-> 1 it should do scale down + destroy the vm.stocky-spoon-28903
08/24/2020, 6:23 PMfunc (c *Cassandra) AMethod(/* params */) error {
// ...
}
stocky-spoon-28903
08/24/2020, 6:24 PMNewCassandra
function to return *Cassandra
rather than *MyComponent
chilly-magazine-6129
08/24/2020, 6:24 PMdamp-secretary-81951
08/24/2020, 8:00 PMcd
into our git repo
3. Will pulumi up
work at that point? I can only find docs for initializing a new stack, not starting to use an existing onehundreds-musician-51496
08/24/2020, 8:38 PMup
on a stack and all its dependencies (i.e., all the stacks that it references as resources)?wet-noon-14291
08/24/2020, 9:22 PMfew-shoe-6011
08/24/2020, 9:44 PM[secret]
. Any idea?
I am using a secret from pulumi to populate a kubernetes secret that is eventually mounted as a volume on the deployment, but I don't understand why that would cause the name to be masked.
const envSecret = new kx.Secret(`${env}-api-secret`, {
stringData: {
...
GOOGLE_APPLICATION_CREDENTIALS: config.requireSecret('GOOGLE_APPLICATION_CREDENTIALS'),
}
});
...
export const deployment_name = deployment.metadata.name;
damp-secretary-81951
08/24/2020, 11:30 PMindex.js
, but my quick-demo
stack to use quick-demo.js
instead.nice-football-42636
08/25/2020, 10:50 AM.NET SDK
and I would like to know, if there is a way to access the current stack name (selected via pulumi cli
) before running the deployment. I found in the source code a property Deployment.Stack
but it throws an exception if I try to access it before running the deployment.
I need to do that in order to run deployment of 2 stacks in one azure dev ops pipeline through one project (we use monolithic approach to project/stacks structure). So I would like to access the currently selected stack and based on that run deployment of specific stack from code.
(I know I can access it via PULUMI_STACK
environment variable but I don't want to rely on some deep internal implementation details but rather use some top level api to access the stack name).straight-branch-26699
08/25/2020, 1:47 PMgifted-cat-21399
08/25/2020, 4:59 PMmany-psychiatrist-74327
08/25/2020, 9:15 PMunable to load Kubernetes client configuration from kubeconfig file
.
I see that in Crosswalk for AWS, the @pulumi/eks
(nodejs) package would let me export cluster.kubeconfig
(docs). But I don’t see anything similar for Python! And the Cluster Resource itself doesn’t seem to have any Output that has the necessary information to set my kubeconfig
or otherwise create a Provider to use in my Kubernetes resources. Please help!handsome-zebra-11018
08/26/2020, 2:45 AMcontainers: [
{
name: appServerLabel,
image: config.get("docker_image") + ":" + config.get("docker_image_tag"),
ports: [{name: "http", containerPort: 80},{name: "https", containerPort: 443}],
volumeMounts: [
{
name: "volume-bigdisk",
mountPath: "/logs/"
}
],
}
],
volumes: [
{
name: "volume-bigdisk",
server: "servername*****",
path: "/af_appserver/VAF/bigdisk",
readOnly: false
}
]
I am getting below error
ame: string; server: string; path: string; readOnly: boolean; }[]; }' is not assignable to type 'PodSpec'.
Types of property 'volumes' are incompatible.
Type '{ name: string; server: string; path: string; readOnly: boolean; }[]' is not assignable to type 'Input<Input<Volume>[]>'.
Type '{ name: string; server: string; path: string; readOnly: boolean; }[]' is not assignable to type 'Input<Volume>[]'.
Type '{ name: string; server: string; path: string; readOnly: boolean; }' is not assignable to type 'Input<Volume>'.
Object literal may only specify known properties, and 'server' does not exist in type 'Input<Volume>'.
breezy-butcher-78604
08/26/2020, 4:38 AMapply()
says that the function cannot create resources, however i have a template that is creating resources within an apply()
and it appears to work ok... is there a reason i shouldn't do this?incalculable-dream-27508
08/26/2020, 10:50 AMhallowed-barista-41250
08/26/2020, 1:18 PMicy-jordan-58549
08/26/2020, 2:59 PMpulumi stack output
from the code? I was pretty sure that I will get stack output from Webhook, but it seems to be was not planned. Any suggestions?handsome-zebra-11018
08/26/2020, 3:15 PMchilly-rainbow-79265
08/26/2020, 4:32 PMlife cycle hooks
. I know it's still in progress. But is there any way for chaining an action
, after a resource got created ?cool-telephone-9886
08/26/2020, 5:28 PMdamp-secretary-81951
08/26/2020, 5:34 PMaws.ec2.VpcEndpoint
) or does Pulumi set this up automatically?adamant-advantage-95831
08/26/2020, 7:22 PMpulumi stack change-secrets-provider <secrets-provider>
?bitter-application-91815
08/26/2020, 7:32 PMbitter-application-91815
08/26/2020, 7:33 PMbitter-application-91815
08/26/2020, 7:34 PMbitter-application-91815
08/26/2020, 7:37 PMmillions-judge-24978
08/26/2020, 10:11 PMlittle-cartoon-10569
08/27/2020, 3:38 AMpulumi up
?little-cartoon-10569
08/27/2020, 4:39 AM