aws / aws/aws-app-mesh-examples

[BUG] Can not remove the ending / in k8s manifest

Open
#520 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
868
Forks
384
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I'm using Kubernetes manifest to create Gateway Route
```
---
apiVersion: appmesh.k8s.aws/v1beta2
kind: GatewayRoute
metadata:
name: service
namespace: develop
spec:
awsName: service
httpRoute:
match:
prefix: /api/service/
port: 80
action:
rewrite:
prefix:
defaultPrefix: DISABLED
target:
virtualService:
virtualServiceRef:
name: service
```

I want to remove the ending `/` at prefix `/api/service/` in the manifest file but the CRDs does not allow me to do it. But I can remove it on Console but it keeps adding the `/` again.

Does anyone know how to get through this one?

**Platform**
EKS

**Expected behavior**
A clear and concise description of what you expected to happen.

**Config files, and API responses**
Here is the CRDs file that I'm using: kubectl apply -k "https://github.com/aws/eks-charts/stable/appmesh-controller/crds?ref=master"

Contributor guide

Open the contributing guide

Research direction

Start with the GatewayRoute manifest in the issue and inspect the App Mesh CRDs from the referenced eks-charts URL, focusing on validation of spec.httpRoute.match.prefix. Then trace how the controller handles that field and reproduce the trailing-slash behavior on EKS; done means the manifest can express the requested prefix without the CRD rejecting or re-adding the slash.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes, yaml
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.