package generator import ( "regexp" "repo.katenary.io/katenary/katenary/internal/generator/labels" ) var ( // find all labels starting by __replace_ and ending with ":" // and get the value between the quotes // ?s => multiline // (?P.+?) => named capture group to "inc" variable (so we could use $inc in the replace) replaceLabelRegexp = regexp.MustCompile(`(?s)__replace_.+?: '(?P.+?)'`) // Standard annotationss Annotations = map[string]string{ labels.LabelName("version"): Version, } )