-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add meshery adaptor chart for networking service mesh #1900
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
Conversation
Signed-off-by: aisuko <urakiny@gmail.com>
@edwarnicke fyi |
@@ -0,0 +1,42 @@ | |||
{{- if .Values.ingress.enabled -}} | |||
{{- $fullName := include "meshery-nsm.fullname" . -}} | |||
{{- $svcPort := .Values.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.
".Values.service.port" could be used directly when we needed. I do not see a reason to add additional lines to define a
variables which are not changed in the current file before they are used.
@@ -0,0 +1,42 @@ | |||
{{- if .Values.ingress.enabled -}} | |||
{{- $fullName := include "meshery-nsm.fullname" . -}} |
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.
"meshery-nsm.fullname" template could be used directly when we needed. I do not see a reason to add additional lines to define a
variables which are not changed in the current file before they are used.
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "meshery-osm.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") | ||
echo "Visit http://127.0.0.1:8080 to use your application" | ||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 | ||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:10009 |
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.
Why we not use {{ .Values.service.port }} to populate value of port "10009". This could be used for all port and in this way we will have only one place where they have to be changed (values.yaml), because from what I noticed we changed them manually here in NOTES.txt
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.
port-forward
command forward the service which in the pod, we should not use the service
port and we need to use the 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.
That's may good point is here that we can change the service port which in the pod into values.yaml
. I will do this in next PR.
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.
Yes, my point is to point it to the correct port from the values.yaml
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 mean we add the adapter pod port into values.yaml, not mean use the service port of the pod. That's two different things.
Signed-off-by: aisuko urakiny@gmail.com
Description
This PR related to #1782
Notes for Reviewers
Signed commits