Kubernetes can't be created with Uppercase chars in the component name
pasqualet opened this issue · 0 comments
pasqualet commented
Describe the bug
Kubernetes can't be created with Uppercase chars in the component name.
To Reproduce
import * as ct from "@cloud-toolkit/cloud-toolkit-aws";
const queue = new ct.kubernetes.Cluster("cluster-XVlBz");
Expected behavior
Successful creation of the Kubernetes Cluster.
Actual behavior
Kubernetes Cluster can't be created:
Diagnostics:
pulumi:pulumi:Stack (tests-kubernetes-cluster-cluster-XVlBz):
error: Error: failed to register new resource cluster-XVlBz [cloud-toolkit-aws:kubernetes:Cluster]: Resource monitor is terminating
at Object.registerResource (/Volumes/workspace/cloud-toolkit-aws/sdk/nodejs/node_modules/@pulumi/runtime/resource.ts:292:27)
at new Resource (/Volumes/workspace/cloud-toolkit-aws/sdk/nodejs/node_modules/@pulumi/resource.ts:402:13)
at new ComponentResource (/Volumes/workspace/cloud-toolkit-aws/sdk/nodejs/node_modules/@pulumi/resource.ts:890:9)
at new Cluster (/Volumes/workspace/cloud-toolkit-aws/sdk/nodejs/kubernetes/cluster.ts:152:9)
at Object.<anonymous> (/private/var/folders/4f/rz81x82n4dl0pnbm_d20hx_m0000gn/T/cluster-XVlBz-3948742308/index.ts:15:15)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Module.m._compile (/private/var/folders/4f/rz81x82n4dl0pnbm_d20hx_m0000gn/T/cluster-XVlBz-3948742308/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Object.require.extensions.<computed> [as .ts] (/private/var/folders/4f/rz81x82n4dl0pnbm_d20hx_m0000gn/T/cluster-XVlBz-3948742308/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:1004:32)
kubernetes:helm.sh/v3:Release (cluster-XVlBz):
error: failed to create chart from template: release name "cluster-XVlBz-09ad1133": invalid release name, must match regex ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ and the length must not be longer than 53