If present, the
ambassador Module can define a set of defaults that will automatically be applied to certain resources:
apiVersion: getambassador.io/v3alpha1kind: Modulemetadata:name: ambassadorspec: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 thetop_key2: value2 # toplevel defaults dictionary for it.
Currently, only the
Mapping resource uses the
Mapping looks first for defaultable resources in the
httpmapping class, including: