From 5cac8ff1eaf19e57b3c969351d3a0f3976d2dbe5 Mon Sep 17 00:00:00 2001 From: liuhaoming Date: Thu, 23 Jan 2025 16:31:29 +0800 Subject: [PATCH] feat: update naming conventions for kusion --- docs/kusion/6-reference/2-modules/3-naming-conventions.md | 4 +++- .../6-reference/2-modules/3-naming-conventions.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/kusion/6-reference/2-modules/3-naming-conventions.md b/docs/kusion/6-reference/2-modules/3-naming-conventions.md index ab7f668c..9a1d8f72 100644 --- a/docs/kusion/6-reference/2-modules/3-naming-conventions.md +++ b/docs/kusion/6-reference/2-modules/3-naming-conventions.md @@ -31,4 +31,6 @@ Similarly, Kusion also adheres to specific naming conventions when generating th | alicloud_db_connection | `` | aliyun:alicloud:alicloud_db_connection:wordpress | | alicloud_rds_account | `` | aliyun:alicloud:alicloud_rds_account:wordpress | -The `` is composed of two parts, one of which is the `key` of database declared in `AppConfiguration` and the other is the `suffix` declared in `workspace` configuration. Kusion will concatenate the database key and suffix, convert them to uppercase, and replace `-` with `_`. And the `` supported now includes `mysql` and `postgres`. +The `` is composed of two parts, one of which is the `key` of database declared in `AppConfiguration` and the other is the `suffix` declared in `workspace` configuration. Kusion will concatenate the database key and suffix, convert them to uppercase, and replace `-` with `_`. However, as for the local database, concerning the limitation of resource name length, Kusion will truncate and only take the first 31 characters. And for the name of the Pod, Kusion will truncate and take the first 15 characters. + +The `` supported now includes `mysql` and `postgres`. diff --git a/docs_versioned_docs/version-v0.14/6-reference/2-modules/3-naming-conventions.md b/docs_versioned_docs/version-v0.14/6-reference/2-modules/3-naming-conventions.md index ab7f668c..9a1d8f72 100644 --- a/docs_versioned_docs/version-v0.14/6-reference/2-modules/3-naming-conventions.md +++ b/docs_versioned_docs/version-v0.14/6-reference/2-modules/3-naming-conventions.md @@ -31,4 +31,6 @@ Similarly, Kusion also adheres to specific naming conventions when generating th | alicloud_db_connection | `` | aliyun:alicloud:alicloud_db_connection:wordpress | | alicloud_rds_account | `` | aliyun:alicloud:alicloud_rds_account:wordpress | -The `` is composed of two parts, one of which is the `key` of database declared in `AppConfiguration` and the other is the `suffix` declared in `workspace` configuration. Kusion will concatenate the database key and suffix, convert them to uppercase, and replace `-` with `_`. And the `` supported now includes `mysql` and `postgres`. +The `` is composed of two parts, one of which is the `key` of database declared in `AppConfiguration` and the other is the `suffix` declared in `workspace` configuration. Kusion will concatenate the database key and suffix, convert them to uppercase, and replace `-` with `_`. However, as for the local database, concerning the limitation of resource name length, Kusion will truncate and only take the first 31 characters. And for the name of the Pod, Kusion will truncate and take the first 15 characters. + +The `` supported now includes `mysql` and `postgres`.