Skip to content

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

@chuongnguyen5397

Description

@chuongnguyen5397

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions