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

updated command for using postgres database as dbType for VelaUX #1351

Merged

Conversation

vishal210893
Copy link

Description

This pull request addresses an issue in the VelaUx setup documentation where an incorrect dbType parameter is specified for configuring the backend database with PostgreSQL. The current documentation instructs users to run:

vela addon enable velaux dbType=postgresql dbURL=postgres://<POSTGRESQL_USER>:<POSTGRESQL_PASSWORD>@<POSTGRESQL_HOST>:<POSTGRESQL_PORT>/<POSTGRESQL_DB_NAME>

However, executing this command results in the following error:

Error: render addon application fail: load app template with CUE files: parameter.dbType: 4 errors in empty disjunction: (and 4 more errors)

The error occurs because the parameter dbType is set to postgresql, whereas it should be set to postgres as per the source code cue template.

Changes: Modified the documentation command to use the correct dbType value.

Correct Command:

vela addon enable velaux dbType=postgres dbURL=postgres://<POSTGRESQL_USER>:<POSTGRESQL_PASSWORD>@<POSTGRESQL_HOST>:<POSTGRESQL_PORT>/<POSTGRESQL_DB_NAME>

I have:

  • Read and followed KubeVela's contribution process.
  • Update sidebar.js if adding a new page.
  • Run yarn start to ensure the changes has taken effect.

Special notes for your reviewer

Verified that the command now aligns with the expected parameters as defined in the source code cue template (refer to the attached image for more context).

image (2)

@vishal210893 vishal210893 force-pushed the bug/incorrect-dbType-for-postgres branch from bd30b97 to b923d8f Compare February 27, 2025 05:51
@FogDong FogDong merged commit dddce53 into kubevela:main Feb 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants