io.quarkiverse.helm.deployment.utils.YamlExpressionParserUtils Maven / Gradle / Ivy
package io.quarkiverse.helm.deployment.utils;
import java.util.Optional;
import java.util.Set;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import io.dekorate.ConfigReference;
import io.github.yamlpath.YamlExpressionParser;
public final class YamlExpressionParserUtils {
public static final String SEPARATOR_TOKEN = ":LINE_SEPARATOR:";
public static final String SEPARATOR_QUOTES = ":DOUBLE_QUOTES";
public static final String START_EXPRESSION_TOKEN = ":START:";
public static final String END_EXPRESSION_TOKEN = ":END:";
public static final String START_TAG = "{{";
public static final String END_TAG = "}}";
public static final String EMPTY = "";
public static final String VALUES_START_TAG = START_TAG + " .Values.";
public static final String VALUES_END_TAG = " " + END_TAG;
private YamlExpressionParserUtils() {
}
public static void set(YamlExpressionParser parser, String path, String expression) {
parser.write(path, adaptExpression(expression));
}
public static Object read(YamlExpressionParser parser, String path) {
Set
© 2015 - 2024 Weber Informatics LLC | Privacy Policy