Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes can't be created with Uppercase chars in the component name #73

Open
pasqualet opened this issue Oct 25, 2022 · 0 comments
Open
Labels
bug Something isn't working package/kubernetes

Comments

@pasqualet
Copy link
Member

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
@pasqualet pasqualet added bug Something isn't working package/kubernetes labels Oct 25, 2022
@pasqualet pasqualet added this to the v0.6.0 milestone Oct 31, 2022
@pasqualet pasqualet removed this from the v0.6.0 milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package/kubernetes
Projects
None yet
Development

No branches or pull requests

1 participant