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

[Improvement] expose 'http-server.rest-auth-type' variable in Helm chart #3345

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

JiHyunSong
Copy link
Contributor

Why are the changes needed?

Close #xxx.

Brief change log

  • export http-server.rest-auth-type variable in helm chart value.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Copy link
Contributor

@baiyangtx baiyangtx left a comment

Choose a reason for hiding this comment

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

LGTM

@Aireed Aireed added this to the Release 0.8.0 milestone Dec 4, 2024
@Aireed Aireed mentioned this pull request Dec 4, 2024
33 tasks
@@ -142,6 +142,7 @@ amoroConf:
ams:
adminUsername: admin
adminPassword: admin
restAuthType: token
Copy link
Contributor

Choose a reason for hiding this comment

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

It should under server.rest

@@ -52,6 +52,7 @@ data:
bind-port: {{ .Values.server.optimizing.port }}

http-server:
rest-auth-type: {{ .Values.amoroConf.ams.restAuthType }}
Copy link
Contributor

Choose a reason for hiding this comment

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

it is a config in AMS REST Serivce, so rest-auth-type: {{ .Values.server.rest.restAuthType }} is better option?

Copy link
Contributor Author

@JiHyunSong JiHyunSong Dec 5, 2024

Choose a reason for hiding this comment

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

@XBaith
I currently see the server.rest. variables in this Helm chart as being more related to Kubernetes service or ingress configurations rather than application settings. On the other hand, I consider the configurations under amoroConf.ams. to be application-specific, which is why I placed them there. I also think this might be a part of the chart worth refactoring in the future..

Since there are differing opinions on this, I wanted to share my perspective. That said, if you still prefer moving them under server.rest, I’m happy to make the change.

Copy link
Contributor

Choose a reason for hiding this comment

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

The reason I prefer moving them under server.rest is that we already have the property HTTP_SERVER_REST_AUTH_TYPE configured as part of the HTTP REST service. It might be better to align with the original design. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @baiyangtx, please let me know if you have any questions.
I will merge this if there is no more comments.

Copy link
Contributor

@zhoujinsong zhoujinsong left a comment

Choose a reason for hiding this comment

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

LGTM.

@zhoujinsong
Copy link
Contributor

Thanks for the contribution! @JiHyunSong
Thanks for the review! @baiyangtx @XBaith

@zhoujinsong zhoujinsong merged commit ccda634 into apache:master Dec 6, 2024
2 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.

5 participants