Skip to content

Commit 28cc867

Browse files
committed
feat(k8s/amour/external-dns): enable gateway API support
1 parent 58d01bf commit 28cc867

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

k8s/amour/external_dns/cluster_role_list.cue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ import (
3535
apiGroups: ["externaldns.k8s.io"]
3636
resources: ["dnsendpoints/status"]
3737
verbs: ["*"]
38+
}, {
39+
apiGroups: ["gateway.networking.k8s.io"]
40+
resources: ["gateways", "httproutes", "grpcroutes", "tlsroutes", "tcproutes", "udproutes"]
41+
verbs: ["get", "watch", "list"]
3842
}]
39-
},
40-
// }, {
41-
// apiGroups: ["gateway.networking.k8s.io"]
42-
// resources: ["httproutes", "grpcroutes", "tlsroutes", "tcproutes", "udproutes"]
43-
// verbs: ["get", "watch", "list"]
44-
// }]
45-
]
43+
}]

k8s/amour/external_dns/deployment_list.cue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
#DeploymentList: items: [{
1818
spec: {
19-
replicas: 0
19+
// replicas: 0
2020
selector: matchLabels: "app.kubernetes.io/name": #Name
2121
template: {
2222
metadata: labels: "app.kubernetes.io/name": #Name
@@ -27,6 +27,10 @@ import (
2727
args: [
2828
"--source=service",
2929
"--source=ingress",
30+
"--source=gateway-httproute",
31+
"--source=gateway-tlsroute",
32+
"--source=gateway-tcproute",
33+
"--source=gateway-udproute",
3034
"--registry=txt",
3135
"--provider=cloudflare",
3236
]

k8s/amour/grafana/gateway_list.cue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
1212
}
1313

1414
#GatewayList: items: [{
15-
metadata: annotations: "cert-manager.io/cluster-issuer": "self-signed-ca"
15+
metadata: annotations: {
16+
"cert-manager.io/cluster-issuer": "self-signed-ca"
17+
"external-dns.alpha.kubernetes.io/hostname": "grafana-amour.hipparcos.net"
18+
}
1619
spec: {
1720
gatewayClassName: "cilium"
1821
listeners: [{

0 commit comments

Comments
 (0)