Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/cf2cnp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cf2cnp
description: A Helm chart for CF2CNP - Cilium Flow to CiliumNetworkPolicy converter
type: application
version: 0.3.1
version: 0.4.0
appVersion: "0.3.1"
keywords:
- cilium
Expand Down
5 changes: 5 additions & 0 deletions helm/cf2cnp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ The following table lists the configurable parameters of the CF2CNP chart and th
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | Ingress hosts configuration | See values.yaml |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `httpRoute.enabled` | Enable HTTPRoute (Gateway API) | `false` |
| `httpRoute.annotations` | HTTPRoute annotations | `{}` |
| `httpRoute.parentRefs` | Gateways the route is attached to | `[]` |
| `httpRoute.hostnames` | HTTPRoute hostnames | See values.yaml |
| `httpRoute.paths` | Path matches of the route | See values.yaml |
| `extraManifests` | Extra Kubernetes manifests to deploy | `[]` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node selector | `{}` |
Expand Down
33 changes: 33 additions & 0 deletions helm/cf2cnp/templates/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{- if .Values.httpRoute.enabled -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ include "cf2cnp.fullname" . }}
labels:
{{- include "cf2cnp.labels" . | nindent 4 }}
{{- with .Values.httpRoute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.httpRoute.parentRefs }}
parentRefs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.hostnames }}
hostnames:
{{- range . }}
- {{ . | quote }}
{{- end }}
{{- end }}
rules:
- matches:
{{- range .Values.httpRoute.paths }}
- path:
type: {{ .pathType }}
value: {{ .path }}
{{- end }}
backendRefs:
- name: {{ include "cf2cnp.fullname" . }}
port: {{ .Values.service.port }}
{{- end }}
13 changes: 13 additions & 0 deletions helm/cf2cnp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ ingress:
# hosts:
# - cf2cnp.local

httpRoute:
enabled: false
annotations: {}
parentRefs: []
# - name: my-gateway
# namespace: gateway-system
# sectionName: https
hostnames:
- cf2cnp.local
paths:
- path: /
pathType: PathPrefix

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down
Loading