Internal cloudendpoint without scheme in domain fails to create. #565
Labels
area/controller
Issues dealing with the controller
bug
Something isn't working
needs-triage
Issues that need triage
Kubernetes Version
Client Version: v1.32.0 Kustomize Version: v5.5.0 Server Version: v1.32.0
Helm Chart Version
Error: unknown flag: --all-namespace 0.16.4
Operator Configuration
error: the server doesn't have a resource type "OperatorConfigurations"
System Info
I'm running k8s on talos.
Kubernetes Logs
Helm Chart configuration
No response
What happened
Btw the template for making issues assumes you can run a bunch of commands but they're in the placeholder text so you can't copy paste them.
What you think should happen instead
Not putting a scheme should be fine.
How to reproduce
https://go.dev/play/p/bKC-1-yItRw
ngrok-operator/internal/controller/ngrok/cloudendpoint_controller.go
Lines 354 to 362 in cf90f52
Apply this:
apiVersion: ngrok.k8s.ngrok.com/v1alpha1
kind: CloudEndpoint
metadata:
name: homelab
namespace: ngrok-operator
spec:
url: homelab.internal
trafficPolicy:
policy:
on_http_request:
- expressions:
- req.host.startsWith('whoami.')
actions:
- type: forward-internal
config:
url: https://whoami.internal
- expressions:
- req.host.startsWith('httpbin.')
actions:
- type: forward-internal
config:
url: https://httpbin.internal
It'll fail. Adding an https:// in front of
homelab.internal
will make it work.The text was updated successfully, but these errors were encountered: