-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow overriding release name #469
Conversation
@WatcherWhale There were changes committed in master (expired Hono Certs getting recreated). Can you rebase? |
decf912
to
3cc51d4
Compare
4ca5ac3
to
6ea5806
Compare
Looking good! @sophokles73 Anything to add? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some smaller issues
In general, can you also please adapt the copyright headers of the files you changed to reflect the current year?
Thanks for contributing 👍
charts/hono/templates/_helpers.tpl
Outdated
*/}} | ||
{{- define "hono.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- $nameOverride := .dot.Values.nameOverride -}} | ||
{{- empty $nameOverride | ternary .dot.Chart.Name $nameOverride | trunc 63 | trimSuffix "-" -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not totally self-explanatory to me, could you please add a comment describing what name this template actually yields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the comment and also restructured the code a bit to make it more legible and similar to what is used in hono.fullname
charts/hono/templates/_helpers.tpl
Outdated
{{- $nameOverride := .dot.Values.nameOverride -}} | ||
{{- $name := empty $nameOverride | ternary .dot.Chart.Name $nameOverride -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like what is returned by hono.name
, right? If so, can we maybe simply invoke that template instead of duplicating the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly, as hono.name
is truncated to 63 chars and here we still need the full name to check if the release name matches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
charts/hono/templates/dispatch-router/dispatch-router-secret.yaml
Outdated
Show resolved
Hide resolved
charts/hono/templates/hono-service-command-router/hono-service-command-router-deployment.yaml
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
charts/hono/templates/dispatch-router/dispatch-router-secret.yaml
Outdated
Show resolved
Hide resolved
charts/hono/templates/hono-service-command-router/hono-service-command-router-secret.yaml
Outdated
Show resolved
Hide resolved
1105995
to
5bdc6e8
Compare
@WatcherWhale Could you rebase and resolve the conflicts? PR #491 has been merged. |
Signed-off-by: Dirk Van Haerenborgh <[email protected]>
Signed-off-by: Dirk Van Haerenborgh <[email protected]>
Signed-off-by: Dirk Van Haerenborgh <[email protected]>
Signed-off-by: Dirk Van Haerenborgh <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
5bdc6e8
to
a13f4c5
Compare
@sophokles73 are there any other changes, I still need to apply for the 2 remaining unresolved issues? |
Well, as my comment, indicates, IMHO it would be good if you added a comment explaining what is actually being computed, as it is not really obvious to me ... |
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
Signed-off-by: Mathias Maes <[email protected]>
988db6c
to
af1395d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WatcherWhale Thanks for bringing this to completion!
This is a continuation of #416 and fixes #430