You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add full support for ApisixUpstream in translator and e2e tests
- Implement `translateApisixUpstream` to support ApisixUpstream translation.
- Add handling for externalNodes with types Domain and Service.
- Update ApisixRoute translator to integrate ApisixUpstream references.
- Introduce `SchemeToPort` and `MatchHostDef` utility functions for validation and defaults.
- Enable e2e tests for ApisixRoute referencing ApisixUpstream.
returnfmt.Errorf("ApisixUpstream %s/%s ExternalNodes[]'s name %s as Domain must match lowercase RFC 1123 subdomain. "+
190
+
"a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character",
// MatchHostDef checks that host matches host's shcema
56
+
// ref to : https://github.com/apache/apisix/blob/c5fc10d9355a0c177a7532f01c77745ff0639a7f/apisix/schema_def.lua#L40
57
+
// ref to : https://github.com/kubernetes/kubernetes/blob/976a940f4a4e84fe814583848f97b9aafcdb083f/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L205
58
+
// They define regex differently, but k8s's dns is more accurate
0 commit comments