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

feat: update naming conventions for kusion #596

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/kusion/6-reference/2-modules/3-naming-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ Similarly, Kusion also adheres to specific naming conventions when generating th
| alicloud_db_connection | `<DATABASE_NAME>` | aliyun:alicloud:alicloud_db_connection:wordpress |
| alicloud_rds_account | `<DATABASE_NAME>` | aliyun:alicloud:alicloud_rds_account:wordpress |

The `<DATABASE_NAME>` 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 `<DATABASE_TYPE>` supported now includes `mysql` and `postgres`.
The `<DATABASE_NAME>` 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 `<DATABASE_TYPE>` supported now includes `mysql` and `postgres`.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ Similarly, Kusion also adheres to specific naming conventions when generating th
| alicloud_db_connection | `<DATABASE_NAME>` | aliyun:alicloud:alicloud_db_connection:wordpress |
| alicloud_rds_account | `<DATABASE_NAME>` | aliyun:alicloud:alicloud_rds_account:wordpress |

The `<DATABASE_NAME>` 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 `<DATABASE_TYPE>` supported now includes `mysql` and `postgres`.
The `<DATABASE_NAME>` 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 `<DATABASE_TYPE>` supported now includes `mysql` and `postgres`.
Loading