Skip to content

httproute-support#527

Merged
ilyam8 merged 2 commits intonetdata:masterfrom
voriol:feature-httproute-support
Apr 8, 2026
Merged

httproute-support#527
ilyam8 merged 2 commits intonetdata:masterfrom
voriol:feature-httproute-support

Conversation

@voriol
Copy link
Copy Markdown
Contributor

@voriol voriol commented Apr 7, 2026

No description provided.

@voriol voriol requested a review from ilyam8 as a code owner April 7, 2026 13:46
Copilot AI review requested due to automatic review settings April 7, 2026 13:46
@voriol voriol requested review from a team as code owners April 7, 2026 13:46
@voriol voriol requested review from M4itee and witalisoft April 7, 2026 13:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds optional Gateway API HTTPRoute support to the Netdata Helm chart so the web UI can be exposed via HTTPRoute instead of (or in addition to) Ingress.

Changes:

  • Introduces new httpRoute.* values (enablement, labels/annotations, parentRefs, hostnames, rules).
  • Adds a new templates/parent/httproute.yaml to render an HTTPRoute when enabled.
  • Updates the chart README values table to document the new configuration.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
charts/netdata/values.yaml Adds httpRoute configuration block and defaults.
charts/netdata/templates/parent/httproute.yaml New HTTPRoute manifest template gated by parent.enabled and httpRoute.enabled.
charts/netdata/README.md Documents the new httpRoute.* values in the generated table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +5

apiVersion: gateway.networking.k8s.io/v1
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

apiVersion is hard-coded to gateway.networking.k8s.io/v1, which will make httpRoute.enabled=true fail to install on clusters that only have HTTPRoute served as v1beta1 (common depending on the installed Gateway API CRDs). Consider selecting the apiVersion based on .Capabilities.APIVersions.Has (or making it configurable via Values.httpRoute.apiVersion) similar to how the chart handles Ingress apiVersion selection.

Suggested change
apiVersion: gateway.networking.k8s.io/v1
{{- $httpRouteApiVersion := "gateway.networking.k8s.io/v1" -}}
{{- if not (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1/HTTPRoute") -}}
{{- if .Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1beta1/HTTPRoute" -}}
{{- $httpRouteApiVersion = "gateway.networking.k8s.io/v1beta1" -}}
{{- end -}}
{{- end -}}
apiVersion: {{ $httpRouteApiVersion }}

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The concern is technically valid but has a low practical impact in 2026. Gateway API v1 (HTTPRoute GA) shipped in October 2023 (over 2.5 years ago).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{{- end }}
spec:
parentRefs:
{{ required "A valid .Values.httpRoute.parentRefs entry is required when httpRoute.enabled is true" .Values.httpRoute.parentRefs | toYaml | indent 4 }}
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

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

The required message says “.Values.httpRoute.parentRefs entry”, but parentRefs is a list. Consider clarifying the message to indicate a non-empty list / at least one parentRef is required.

Suggested change
{{ required "A valid .Values.httpRoute.parentRefs entry is required when httpRoute.enabled is true" .Values.httpRoute.parentRefs | toYaml | indent 4 }}
{{ required "A non-empty .Values.httpRoute.parentRefs list with at least one parentRef is required when httpRoute.enabled is true" .Values.httpRoute.parentRefs | toYaml | indent 4 }}

Copilot uses AI. Check for mistakes.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 8, 2026

CLA assistant check
All committers have signed the CLA.

@ilyam8 ilyam8 merged commit 0c8ea6d into netdata:master Apr 8, 2026
2 checks passed
@ilyam8
Copy link
Copy Markdown
Member

ilyam8 commented Apr 8, 2026

Thanks, @voriol 👍

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