spring-cloud-skipper icon indicating copy to clipboard operation
spring-cloud-skipper copied to clipboard

How to add annotation with comma separated value

Open rob-64 opened this issue 1 year ago • 0 comments

Trying to use Stakater Reloader (https://github.com/stakater/Reloader/tree/master), with a value to watch configmaps as follows:

annotations: configmap.reloader.stakater.com/reload: "foo-configmap,bar-configmap,baz-configmap"

however, since I have to use SCDF to get the values to k8s, i have it in this format:

"configmap.reloader.stakater.com/reload:foo-configmap,bar-configmap,baz-configmap"

which gets past the code of PropertyParserUtils.getStringPairsToMap:

/** * Positive look ahead that into a non capturing group that will skip all commas in quotes. * Even number quotes will be ignored by the non capturing group. / String[] pairs = stringPairs.split(",(?=(?:[^"]"[^"]")[^"]*$)", -1);

BUT, it then fails skipper ReleaseService.install when passed to ManifestUtils.createManifest:99

image

rob-64 avatar Apr 23 '24 20:04 rob-64