MCPcopy Create free account
hub / github.com/zalando/skipper / parseAnnotationPredicates

Function parseAnnotationPredicates

config/config.go:1437–1450  ·  view source on GitHub ↗
(s []string)

Source from the content-addressed store, hash-verified

1435}
1436
1437func parseAnnotationPredicates(s []string) ([]kubernetes.AnnotationPredicates, error) {
1438 return parseAnnotationConfig(s, func(annotationKey, annotationValue, value string) (kubernetes.AnnotationPredicates, error) {
1439 predicates, err := eskip.ParsePredicates(value)
1440 if err != nil {
1441 var zero kubernetes.AnnotationPredicates
1442 return zero, err
1443 }
1444 return kubernetes.AnnotationPredicates{
1445 Key: annotationKey,
1446 Value: annotationValue,
1447 Predicates: predicates,
1448 }, nil
1449 })
1450}
1451
1452func parseAnnotationFilters(s []string) ([]kubernetes.AnnotationFilters, error) {
1453 return parseAnnotationConfig(s, func(annotationKey, annotationValue, value string) (kubernetes.AnnotationFilters, error) {

Callers 4

validateFunction · 0.85
ParseArgsMethod · 0.85

Calls 2

ParsePredicatesFunction · 0.92
parseAnnotationConfigFunction · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…