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

Ensure the presence of the port in database host variable #407

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

halkeye
Copy link
Contributor

@halkeye halkeye commented Nov 29, 2024

Since Port is seperated for MARIADB variables, it needs to be joined for YOURLS_DB_HOST

Copy link
Member

@LeoColomb LeoColomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this pull request, @halkeye.
Sounds good to me.
Please see my inline comment.
Also, the chart version needs to be bumped.

@@ -130,7 +130,7 @@ spec:
- name: MARIADB_PORT_NUMBER
value: {{ include "yourls.databasePort" . | quote }}
- name: YOURLS_DB_HOST
value: {{ include "yourls.databaseHost" . | quote }}
value: "{{ include "yourls.databaseHost" . }}:{{ include "yourls.databasePort" . }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use proper string interpolation:

Suggested change
value: "{{ include "yourls.databaseHost" . }}:{{ include "yourls.databasePort" . }}"
value: {{ printf "%s:%s" (include "yourls.databaseHost" .) (include "yourls.databasePort" .) }}

@LeoColomb LeoColomb changed the title Since Port is seperated for MARIADB variables, it needs to be joined … Ensure the presence of the port in database host variable Nov 30, 2024
@LeoColomb LeoColomb enabled auto-merge (squash) November 30, 2024 21:59
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