-
Notifications
You must be signed in to change notification settings - Fork 68
add daemonset extrahostports #98
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -362,6 +362,17 @@ spec: | |||||||||||||||||
| {{- end }} | ||||||||||||||||||
| {{- end }} | ||||||||||||||||||
| {{- end }} | ||||||||||||||||||
|
|
||||||||||||||||||
| {{- if eq $.Values.controller.kind "DaemonSet" }} | ||||||||||||||||||
| {{- if $.Values.controller.daemonset.useHostPort }} | ||||||||||||||||||
| {{- range $row := .Values.controller.daemonset.extraHostPorts }} | ||||||||||||||||||
| - name: "extra-port-{{ $row.port }}" | ||||||||||||||||||
| containerPort: {{ $row.containerPort }} | ||||||||||||||||||
|
||||||||||||||||||
| containerPort: {{ $row.containerPort }} | |
| containerPort: {{ $row.containerPort }} | |
| {{- if $.Values.controller.daemonset.hostIP }} | |
| hostIP: {{ $.Values.controller.daemonset.hostIP }} | |
| {{- end }} |
Copilot
AI
Dec 22, 2025
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.
The extraHostPorts implementation is missing a protocol specification. All other port definitions in this template include protocol: TCP (see lines 336, 344, 351). This field should be added to maintain consistency and ensure proper protocol configuration.
| containerPort: {{ $row.containerPort }} | |
| containerPort: {{ $row.containerPort }} | |
| protocol: TCP |
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.
The documentation mentions that each entry should specify
port,containerPort, andhostPort, but the template only uses theportfield for generating the port name. This creates confusion about the purpose of theportfield. Consider either removingportfrom the documentation if it's only used for naming, or clarifying its purpose (e.g., "Each entry should specifyport(used for naming),containerPort, andhostPort").