question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error : not a valid Mapping: Additional properties are not allowed ('regex_rewrite' was unexpected)

See original GitHub issue

error : not a valid Mapping: Additional properties are not allowed (‘regex_rewrite’ was unexpected) regex_rewrite property is not identified with ambassador version 1.7.2

ambassador mapping

    apiVersion: ambassador/v1
    kind: Mapping
    name: asterix_dictionary_mapping
    prefix_regex: true
    # prefix: "\/site\/[0-9A-Za-z_]+\/dictionary\/.*"
    prefix: "\/skipper\/site\/.*\/dictionary\/.*"
    regex_rewrite:
           pattern: '\/skipper\/(.*)'
           substitution: '/\1'
    service: localhost:8000

ambassador image Image: quay.io/datawire/ambassador:1.7.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cakuroscommented, Jan 29, 2021

Hi @abhishek-rio

regex_rewrite was introduced in Ambassador v 1.5.0. As such, you will have to upgrade to a more recent version of Ambassador to use this feature.

0reactions
kflynncommented, Apr 30, 2021

Closing this issue, since the Mapping issue is managed. #3329 is the only issue I see for increased resource usage in later Ambassador; please feel free to open a separate issue if you’re still seeing CPU issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error : not a valid Mapping: Additional properties are ... - GitHub
error : not a valid Mapping: Additional properties are not allowed ('regex_rewrite' was unexpected) regex_rewrite property is not identified ...
Read more >
Notebook validation failed: Additional properties are not ...
I fixed the above issue by copying the content of the cell instead of the cell itself . I had been using multiple...
Read more >
envoy_config_route_v3 - Go Packages
The router is capable of shadowing traffic from one cluster to another. The current implementation is "fire and forget," meaning Envoy will not...
Read more >
IceWarp-V10.3.4-fiche-version.txt
This fixes bug with client session terminating unexpectedly with "could not connect" [*] 2008-10-29 XMPP - S2S - socket write failure results in...
Read more >
route.proto :: Gloo Edge Docs
This is used when emitting certain statistics but is not relevant for routing. ... Virtual clusters are used for additional statistics gathering.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found