rewritetarget

package
v0.0.0-...-282180b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeInput

func SanitizeInput(val string) string

SanitizeInput processes the `haproxy.router.openshift.io/rewrite-target` annotation value for API compatibility while properly handling values with spaces, backslashes, and other special characters. Because the annotation value was initially introduced without being enclosed in single quotes, certain characters were interpreted rather than being treated literally. We later added the single quotes wrapping to resolve OCPBUGS-22739. However, we must still maintain API compatibility after this change: the annotation values MUST be interpreted to the same values after updating to enclose the value in single quotes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL