Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.13 KB

File metadata and controls

32 lines (26 loc) · 1.13 KB

Using Ambassador Module Defaults

The defaults element

If present, the ambassador Module can define a set of defaults that will automatically be applied to certain resources:

apiVersion: getambassador.io/v2
kind:  Module
metadata:
  name:  ambassador
spec:
  config:
    defaults:
      class1:           # This is a class. Different resource types will look in different classes.
        key1: value1    # Within a class, you can set different keys.
        key2: value2
        ...
      class2:
        ...
      top_key1: value1  # If a key isn't found in a resource's class, the system will look in the
      top_key2: value2  # toplevel defaults dictionary for it.

Mapping

Currently, only the Mapping resource uses the defaults mechanism. Mapping looks first for defaultable resources in the httpmapping class, including: