Skip to content

Commit

Permalink
fix: respect YamlConfigSource (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Pucihar committed Oct 6, 2024
1 parent 8635590 commit fc9570d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class HelmProcessor {
private static final String SERVICE_PORT_PLACEHOLDER = "::service-port";
private static final String SPLIT = ":";
private static final String PROPERTIES_CONFIG_SOURCE = "PropertiesConfigSource";
private static final String YAML_CONFIG_SOURCE = "YamlConfigSource";
// Lazy loaded when calling `isBuildTimeProperty(xxx)`.
private static Set<String> buildProperties;

Expand Down Expand Up @@ -411,7 +412,8 @@ public static String getDeploymentName(Capabilities capabilities, ApplicationInf
}

private boolean isPropertiesConfigSource(String sourceName) {
return StringUtils.isNotEmpty(sourceName) && sourceName.startsWith(PROPERTIES_CONFIG_SOURCE);
return StringUtils.isNotEmpty(sourceName)
&& (sourceName.startsWith(PROPERTIES_CONFIG_SOURCE) || sourceName.startsWith(YAML_CONFIG_SOURCE));
}

private boolean isBuildTimeProperty(String name) {
Expand Down

0 comments on commit fc9570d

Please sign in to comment.