Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KongPathRegexPrefix is the reserved prefix string that instructs Kong 3.0+ to interpret a path as a regex. KongPathRegexPrefix = "~" // ControllerPathRegePrefix is the prefix string used to indicate that the controller should treat a path as a // regular expression. The controller replaces this prefix with KongPathRegexPrefix when sending routes to Kong. ControllerPathRegexPrefix = "/~" )
Variables ¶
This section is empty.
Functions ¶
func PathsFromIngressPaths ¶ added in v2.6.0
func PathsFromIngressPaths(httpIngressPath netv1.HTTPIngressPath, addRegexPrefix bool) []*string
PathsFromIngressPaths takes a path and Ingress path type and returns a set of Kong route paths that satisfy that path type. It optionally adds the Kong 3.x regex path prefix for path types that require a regex path. It rejects unknown path types with an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.