-
Notifications
You must be signed in to change notification settings - Fork 298
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
[BUG] Autogenerated resource names not properly formatted #16
Comments
No problem. For some reason I was certain I read somewhere that dots are allowed but that’s a very easy fix. |
@tabern the auto-generated resource names (like the one auto-generated for the The problem here is that you used What was the motivation of using |
Okay, got it. It's in the README. Sadly we can't change Let me update our README to actually work, and we'll think about this a bit more. |
Well... More testing yielded the following error:
So, for |
Reverting the original bug name and continuing to investigate. |
OK, so apparently, names have different constraints based on the resource type (aaaah!). The common denominator seems to be |
Different resource types may have different constraints on names (`metadata.name`). The previous version of the name generator was compatible with DNS_SUBDOMAIN but not with DNS_LABEL. For example, `Deployment` names must comply with DNS_SUBDOMAIN while `Service` names must comply with DNS_LABEL. Since there is no formal specification for this, the default name generation scheme for kubernetes objects in cdk8s was changed to DNS_LABEL, since it’s the common denominator for all kubernetes resources (supposedly). Fixes #16
…es (#18) Different resource types may have different constraints on names (`metadata.name`). The previous version of the name generator was compatible with DNS_SUBDOMAIN but not with DNS_LABEL. For example, `Deployment` names must comply with DNS_SUBDOMAIN while `Service` names must comply with DNS_LABEL. Since there is no formal specification for this, the default name generation scheme for kubernetes objects in cdk8s was changed to DNS_LABEL, since it’s the common denominator for all kubernetes resources (supposedly). Fixes #16
Auto-generated resource names follow the format
this.object.uniqueid
. This results in output that does not conform with K8s naming validation.Input TS
Output YAML
Error
The text was updated successfully, but these errors were encountered: