[falcosidekick] Add Gateway API HTTPRoute support - #1026
Conversation
|
Welcome @somaz94! It looks like this is your first PR to falcosecurity/charts 🎉 |
|
Ready for review 🙏 This adds Gateway API |
| {{- end }} | ||
| {{- else if .Values.httproute.enabled }} | ||
| {{- range .Values.httproute.hostnames }} | ||
| http{{ if $.Values.httproute.httpsRedirect }}s{{ end }}://{{ . }}/ |
There was a problem hiding this comment.
| http{{ if $.Values.httproute.httpsRedirect }}s{{ end }}://{{ . }}/ | |
| http{{ if $.Values.httproute.httpsRedirect }}s{{ end }}://{{ tpl . $ }}/ |
httproute.hostnames is documented as templated and the HTTPRoute manifest already renders it through tpl, but the NOTES output still prints the raw template string. With {{ .Release.Name }}.example.test, the route renders review.example.test while NOTES prints {{ .Release.Name }}.example.test.
| {{- end }} | ||
| {{- else if .Values.webui.httproute.enabled }} | ||
| {{- range .Values.webui.httproute.hostnames }} | ||
| http{{ if $.Values.webui.httproute.httpsRedirect }}s{{ end }}://{{ . }}/ |
There was a problem hiding this comment.
| http{{ if $.Values.webui.httproute.httpsRedirect }}s{{ end }}://{{ . }}/ | |
| http{{ if $.Values.webui.httproute.httpsRedirect }}s{{ end }}://{{ tpl . $ }}/ |
Same for the Web UI HTTPRoute notes. webui.httproute.hostnames is documented as templated and the HTTPRoute uses tpl, so the post-install URL should render the hostname the same way.
|
Thanks for the review @c2ndev! Both NOTES suggestions applied in |
|
Hey! Thank you for the contribution. Could you please squash the commits and add DCO? Thank you 🙏 |
867a227 to
827dbc8
Compare
Signed-off-by: somaz <genius5711@gmail.com>
827dbc8 to
d83e89e
Compare
|
Done @c2ndev 🙏 — squashed into a single commit ( |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: c2ndev, somaz94 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM label has been added. DetailsGit tree hash: 4222d3a2d1d69805469d2f80391459e88f38c423 |
Add Gateway API
HTTPRoutesupport to the falcosidekick chart for both the core service and the Web UI, as an alternative to the existing Ingress resources. This follows the ingress-nginx retirement and the migration toward Gateway API described in #962.templates/httproute.yaml(core) gated byhttproute.enabledtemplates/httproute-ui.yaml(Web UI) gated bywebui.httproute.enabledingress.yaml/ingress-ui.yamlstructure; both default tofalse, so existing installs are unaffectedparentRefs,hostnames(templated),matches,filters,additionalRules,httpsRedirect, andapiVersion/kindoverridesValidation (local):
helm lint charts/falcosidekick→ 0 chart(s) failedhelm templatewith defaults → no HTTPRoute rendered (disabled by default)<release>-falcosidekick:2801<release>-falcosidekick-ui:2802httpsRedirect=true→ RequestRedirect (301) filter onlymake docs-falcosidekick→ README regenerated (helm-docs v1.11.0)Chart version bumped
0.13.1→0.14.0, CHANGELOG updated.closes #962
/kind feature
/area falcosidekick-chart