Skip to content

Commit

Permalink
feat: update naming conventions for kusion
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Jan 23, 2025
1 parent b41fd68 commit 5cac8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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`.

0 comments on commit 5cac8ff

Please sign in to comment.