thousands-london-78260
03/11/2020, 11:23 PMconfigured Kubernetes cluster is unreachable: failed to parse kubeconfig data in `kubernetes:config:kubeconfig`; this must be a YAML literal string and not a filename or path - yaml: line 2: mapping values are not allowed in this context
billowy-army-68599
export interface RKEClusterNode {
// snip
/**
* Node roles in k8s cluster. `controlplane`, `etcd` and `worker` are supported. (list)
*/
roles: pulumi.Input<pulumi.Input<string>[]>;
roles?: pulumi.Input<string>;
}
So I gave the following a try
Resources: map[string]*tfbridge.ResourceInfo{
"rke_cluster": {
Tok: makeResource(mainMod, "RKECluster"),
Fields: map[string]*tfbridge.SchemaInfo{
"nodes": {
Fields: map[string]*tfbridge.SchemaInfo{
"roles": {
Name: "RoleList",
},
},
},
},
},
},
billowy-army-68599
rapid-lamp-57703
03/12/2020, 3:00 PMprehistoric-pillow-672
03/12/2020, 3:46 PMfast-dinner-32080
03/12/2020, 5:19 PMfast-dinner-32080
03/12/2020, 5:50 PMstring test = $"Test String: {args.Name.Apply(x => x.ToString())}";
but that doesn't seem to work where I get
Test String: Pulumi.Output`1[System.String]
rapid-lamp-57703
03/12/2020, 7:08 PMbillowy-army-68599
billowy-army-68599
full-dress-10026
03/12/2020, 10:19 PMpulumi up
.
error: [500] Internal Server Error
kind-minister-39119
03/13/2020, 1:11 AMget_vpc
and get_subnet
, but aws.ec2.Instance
does not give me the opportunity to specify a VPC ID. The result is when I specify the subnet, I get this error:
aws:ec2:Instance (ansible-master):
error: Error launching source instance: InvalidGroup.NotFound: The security group 'mgmt-ansible-master-sg-xxxx' does not exist in VPC 'vpc-xxxxxx'
status code: 400, request id: xxxxx
vpc = aws.ec2.get_vpc(cidr_block="172.18.0.0/16")
subnet = aws.ec2.get_subnet(vpc_id=vpc.id, cidr_block="172.18.1.0/24")
group = aws.ec2.SecurityGroup('mgmt-ansible-master-sg',
description='Ansible Master Security Group',
ingress=[
{ 'protocol': 'tcp', 'from_port': 22, 'to_port': 22, 'cidr_blocks': ['172.18.0.0/24'] }
],
egress=[
{ 'protocol': '-1', 'from_port': 0, 'to_port': 0, 'cidr_blocks': ['0.0.0.0/0'] }
], vpc_id=vpc.id)
server = aws.ec2.Instance("ansible-master",
instance_type=size,
security_groups=[group.name],
ami=ami.id, key_name='mgmt', subnet_id=subnet.id)
rapid-lamp-57703
03/13/2020, 9:28 AMacceptable-stone-35112
03/13/2020, 2:18 PMwet-sunset-4939
03/13/2020, 2:39 PMazure:storage/account:Account resource 'xxxx' has a problem: static_website.0: invalid or unknown key: error404_document
wet-sunset-4939
03/13/2020, 3:30 PMMessage="Property id '' at path 'properties.hostingEnvironmentProfile.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.
elegant-crayon-4967
03/13/2020, 8:18 PM// runTests executes all test files (*.ts) in the current directory.
export function runTests() {
// Create a new Mocha test runner (with a long timeout).
const mocha = new Mocha({ timeout: 1000*60*30 });
// Only keep the .ts files, and skip this file (index.ts).
const testDir = __dirname;
fs.readdirSync(testDir).
filter(file => file.endsWith(".ts") && file !== "index.ts").
forEach(file => { mocha.addFile(path.join(testDir, file)); });
// Now actually run the tests with the desired reporter.
console.log(`Running Mocha Tests: ${mocha.files}`);
mocha.reporter("spec").run(failures => {
process.exitCode = failures ? 1 : 0;
});
}
// promise returns a resource output's value, even if it's undefined.
export function promise<T>(output: pulumi.Output<T>): Promise<T | undefined> {
return (output as any).promise() as Promise<T>;
}
to arrow functions. I’m not sure how to do that for the export function promise<T>
anyone have updated code that uses arrow functions for the testing?fast-dinner-32080
03/13/2020, 8:18 PMbillowy-army-68599
fast-dinner-32080
03/13/2020, 8:19 PMbillowy-army-68599
development
branch for nowbillowy-army-68599
billowy-army-68599
fast-dinner-32080
03/13/2020, 8:22 PMfast-dinner-32080
03/13/2020, 8:23 PMfast-dinner-32080
03/13/2020, 8:23 PMfast-dinner-32080
03/13/2020, 8:23 PMbillowy-army-68599
fast-dinner-32080
03/13/2020, 8:37 PMbillowy-army-68599