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

Allow overriding release name #469

Merged
merged 22 commits into from
Sep 6, 2023
Merged

Conversation

WatcherWhale
Copy link
Contributor

This is a continuation of #416 and fixes #430

@calohmn calohmn added the Hono label Jun 24, 2023
charts/hono/templates/_helpers.tpl Outdated Show resolved Hide resolved
charts/hono/templates/_helpers.tpl Show resolved Hide resolved
@calohmn
Copy link
Contributor

calohmn commented Jun 26, 2023

@WatcherWhale There were changes committed in master (expired Hono Certs getting recreated). Can you rebase?

charts/hono/templates/_helpers.tpl Outdated Show resolved Hide resolved
charts/hono/templates/_helpers.tpl Outdated Show resolved Hide resolved
packages/cloud2edge/Chart.yaml Outdated Show resolved Hide resolved
charts/hono/templates/prometheus/prometheus-config.yaml Outdated Show resolved Hide resolved
charts/hono/values.yaml Outdated Show resolved Hide resolved
charts/hono/templates/kafka/kafka-example-keys.yaml Outdated Show resolved Hide resolved
charts/hono/README.md Outdated Show resolved Hide resolved
@calohmn
Copy link
Contributor

calohmn commented Aug 24, 2023

Looking good! @sophokles73 Anything to add?

Copy link
Member

@sophokles73 sophokles73 left a 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 👍

*/}}
{{- 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 "-" -}}
Copy link
Member

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?

Copy link
Contributor Author

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

Comment on lines 39 to 40
{{- $nameOverride := .dot.Values.nameOverride -}}
{{- $name := empty $nameOverride | ternary .dot.Chart.Name $nameOverride -}}
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

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

I see

charts/hono/values.yaml Outdated Show resolved Hide resolved
@calohmn

This comment was marked as resolved.

charts/hono/Chart.yaml Outdated Show resolved Hide resolved
@calohmn
Copy link
Contributor

calohmn commented Aug 30, 2023

@WatcherWhale Could you rebase and resolve the conflicts? PR #491 has been merged.

vhdirk and others added 11 commits August 30, 2023 09:46
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]>
@WatcherWhale
Copy link
Contributor Author

@sophokles73 are there any other changes, I still need to apply for the 2 remaining unresolved issues?

@sophokles73
Copy link
Member

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 ...

packages/cloud2edge/Chart.yaml Outdated Show resolved Hide resolved
Copy link
Member

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@calohmn calohmn left a 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!

@calohmn calohmn merged commit f3313cc into eclipse:master Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow overriding the hono release name
4 participants