refactor: split browser and auth-proxy ingresses. - #586
Conversation
|
Claude finished @lhoupert's task in 2m 44s —— View job Claude finished @lhoupert's requested review
✅ No blocking issues — safe to merge. Both previously-flagged review issues are properly addressed in the latest commit:
I traced the new
No correctness, security, or best-practice issues found in the template or test changes. One non-blocking observation: the dedicated unit test that rendered Note: I couldn't execute Simplify (ponytail): none — the refactor consolidates three near-duplicate ingress templates into shared 💰 Estimated review cost: $0.74 · 2m44s · 30 turns |
b2068f8 to
652a443
Compare
0c5165d to
c4bb6ea
Compare
364dceb to
81e90d4
Compare
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| path: /stac | ||
| - equal: | ||
| path: metadata.annotations["nginx.ingress.kubernetes.io/rewrite-target"] | ||
| value: /$2 |
There was a problem hiding this comment.
It seems that these notContains assertions can never fail without any: true
The assertion seems to pass even when the path is present, and fails correctly once any: true is added.
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| pathType: Prefix | ||
| path: /stac | ||
| backend: | ||
| service: | ||
| name: RELEASE-NAME-stac-auth-proxy | ||
| port: | ||
| number: 8080 | ||
| - contains: | ||
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| pathType: ImplementationSpecific | ||
| path: /browser(/|$)(.*) | ||
| backend: | ||
| service: | ||
| name: RELEASE-NAME-browser | ||
| port: | ||
| number: 8080 | ||
| path: /browser |
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| pathType: Prefix | ||
| path: /stac | ||
| backend: | ||
| service: | ||
| name: RELEASE-NAME-stac-auth-proxy | ||
| port: | ||
| number: 8080 | ||
| - contains: | ||
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| pathType: ImplementationSpecific | ||
| path: /browser(/|$)(.*) | ||
| backend: | ||
| service: | ||
| name: RELEASE-NAME-browser | ||
| port: | ||
| number: 8080 | ||
| path: /browser |
There was a problem hiding this comment.
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| pathType: Prefix | |
| path: /stac | |
| backend: | |
| service: | |
| name: RELEASE-NAME-stac-auth-proxy | |
| port: | |
| number: 8080 | |
| - contains: | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| pathType: ImplementationSpecific | |
| path: /browser(/|$)(.*) | |
| backend: | |
| service: | |
| name: RELEASE-NAME-browser | |
| port: | |
| number: 8080 | |
| path: /browser | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /stac | |
| any: true | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /browser | |
| any: true | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /browser(/|$)(.*) | |
| any: true |
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| path: "/browser" |
There was a problem hiding this comment.
Sane issue than https://github.com/developmentseed/eoapi-k8s/pull/586/changes#r3675257745
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: "/browser" | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: "/browser" | |
| any: true | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: "/browser(/|$)(.*)" | |
| any: true |
| - notContains: | ||
| path: spec.rules[0].http.paths | ||
| content: | ||
| path: /stac |
There was a problem hiding this comment.
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /stac | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /stac | |
| any: true | |
| - notContains: | |
| path: spec.rules[0].http.paths | |
| content: | |
| path: /stac(/|$)(.*) | |
| any: true |
52bb6b6 to
a7e5d7d
Compare
a7e5d7d to
7fc2658
Compare
|
Thanks for the review, @lhoupert! I addressed the mentioned issues and cleaned up a bit more. I'd appreciate another round of review. |
7fc2658 to
c07ea81
Compare
c07ea81 to
2665787
Compare
2665787 to
fbe6257
Compare
Closes #568.