Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Fix scaling policy processing order
Browse files Browse the repository at this point in the history
  • Loading branch information
anuruddhal authored and isurulucky committed Dec 19, 2019
1 parent edbe884 commit 83538e0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,16 @@ private static void processComponents(MapValue<?, ?> components) {
component.setType(attributeMap.getStringValue("type"));
processSource(component, attributeMap);
//Process Optional fields
if (attributeMap.containsKey(SCALING_POLICY)) {
processAutoScalePolicy(attributeMap.getMapValue(SCALING_POLICY), component);
}
if (attributeMap.containsKey(INGRESSES)) {
processIngress(attributeMap.getMapValue(INGRESSES), component);
}
if (attributeMap.containsKey(LABELS)) {
attributeMap.getMapValue(LABELS).forEach((labelKey, labelValue) ->
component.addLabel(labelKey.toString(), labelValue.toString()));
}
if (attributeMap.containsKey(SCALING_POLICY)) {
processAutoScalePolicy(attributeMap.getMapValue(SCALING_POLICY), component);
}
if (attributeMap.containsKey(ENV_VARS)) {
processEnvVars(attributeMap.getMapValue(ENV_VARS), component);
}
Expand Down

0 comments on commit 83538e0

Please sign in to comment.