-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: use pathType ImplementationSpecific for regex #272
Conversation
fix error ``` path /(/?|$)(.*) cannot be used with pathType Prefix ``` Signed-off-by: Guilhem Lettron <[email protected]>
7500eaf
to
75d4cc4
Compare
@JorgeGar Would you like to take a look? Thanks in advance. |
gentle ping |
@@ -63,8 +63,12 @@ spec: | |||
- path: /{{ include "devlake.grafanaEndpointPrefix" . }} | |||
{{- end }} | |||
{{- if semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion }} | |||
{{- if .Values.ingress.useDefaultNginx }} | |||
pathType: ImplementationSpecific |
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 should be good enough, but why not making the pathType itself a variable?
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.
in fact, I just copy paste exactly what was working before:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ .Values.grafana.ingressServiceName | default ( include "grafana.fullname" (dict "Values" .Values.grafana "Chart" (dict "Name" "grafana") "Release" .Release ) ) }}
port:
number: {{ .Values.grafana.ingressServicePort | default .Values.grafana.service.port }}
{{- else }}
serviceName: {{ .Values.grafana.ingressServiceName | default ( include "grafana.fullname" (dict "Values" .Values.grafana "Chart" (dict "Name" "grafana") "Release" .Release ) ) }}
servicePort: {{ .Values.grafana.ingressServicePort | default .Values.grafana.service.port }}
{{- end }}
So sorry, I missed the first notifications. Thanks for the ping. |
This simplify template and overriding.
@JorgeGar I change in last commit the way to manage ingress with 2 different ing resources. I also have that need because |
port: | ||
number: 4000 | ||
number: {{ .Values.grafana.ingressServicePort | default .Values.grafana.service.port }} |
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 don't think we have the value garafana.service.port in the values.yaml file. Since this is the default, coul you kindly add it?
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.
@guilhem if you could kindly take a look into this, the rest is looking great and I'm happy to approve it :)
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.
@JorgeGar I replied here #272 (comment)
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.
All good then :) Thanks
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 kept the exact same behavior not to change everything at once :)
Theses values come from grafana
chart as dependancy.
This reverts commit 392dc80.
Hi @ZhangNing10 this is not the case since 2020 and controller v2: https://aws.amazon.com/fr/blogs/containers/introducing-aws-load-balancer-controller/ you can use: metadata:
annotation:
alb.ingress.kubernetes.io/group.name: devlake which is supported by this PR as we are sharing the same |
Hi @guilhem , thanks for the info! As the grafana specifies |
Hi @ZhangNing10. Sorry, I was a bit late to answer. I see the PR is already merged. Is the issue solved? Please, let me know how else I can help 😃 |
Hi @guilhem, Thank you for your contribution! I'm Joshua Poddoku, Committer at Apache DevLake. We'd love for you to join our Slack community or DM me incase you've joined already: https://join.slack.com/t/devlake-io/shared_invite/zt-18uayb6ut-cHOjiYcBwERQ8VVPZ9cQQw. Could you please share your full name there? We want to recognize your efforts with a certificate of contribution. Best, |
fix error