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

(fix): Check NodePort Service Type before setting it #982

Closed
wants to merge 1 commit into from

Conversation

kameshsampath
Copy link
Contributor

Currently the helm chart does not support specifying arbitrary nodePort value for services. This PR allows the template users to specify the nodePort for the services. Allowing nodePort helps setting the nodePort for polaris k8s deployment where we it might be a constraint to use any generated nodePort.

fixes: #981

@kameshsampath kameshsampath changed the title (fix): Allow helm chart to support arbitrary nodePort value (fix): Check NodePort Service Type before setting it Feb 11, 2025
@@ -90,11 +90,11 @@ spec:
mountPath: {{ .Values.logging.file.logsDir }}
readOnly: false
{{- end }}
- name: temp-dir
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you accidentally deleted some volume mounts here. Also, there is a polaris.containerPorts template that prints the ports, you don't need to iterate over the ports here.

targetPort: {{ .targetPort }}
{{- range $portName, $port := .Values.service.ports }}
- port: {{ $port.port }}
targetPort: {{ $port.port }}
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems you accidentally modified how targetPort is handled.

- port: 18181
targetPort: 18181
name: polaris-http
polaris-service:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is supposed to be an array.

- name: polaris-http
# -- The port the service listens on. By default, the HTTP port is 8181.
# polaris-server: The port the Polaris server listens on for API requests.
polaris-service:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is supposed to be an array, please don't change this.

@@ -538,6 +526,7 @@ fileIo:
# -- The type of file IO to use. Two built-in types are supported: default and wasb. The wasb one translates WASB paths to ABFS ones.
type: default

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

Merge artifact?

@kameshsampath
Copy link
Contributor Author

sorry some issue with my rebase. will open a new PR with #626 merged.

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.

Add Nodeport support in Helm
2 participants