How to add annotation with comma separated value
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