Skip to content

Commit

Permalink
Merge pull request #1135 from DataUSA/develop
Browse files Browse the repository at this point in the history
Build prod image
  • Loading branch information
nspmx authored Nov 4, 2024
2 parents 842477b + 915d48f commit a9a233d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions api/customAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ module.exports = function(app) {
retObj.stateElectionId = ["Nation", "State", "County"].includes(hierarchy) ? id : stateElection.join(",");
retObj.electionCut = hierarchy === "Nation" ? `State` : hierarchy === "County" ? `County&State+County=${retObj.stateDataID}` : `County&State+County=${retObj.stateElectionId}`;
retObj.hierarchySub = hierarchy === "Nation" ? "State" : "County";
retObj.CBPSection = hierarchy === "County" || (hierarchy === "State" && id !== "04000US72") || hierarchy === "MSA"

if (hierarchy !== "Nation") {
const url = `${CANON_GEOSERVICE_API}neighbors/${state ? state.id : id}`;
Expand Down
12 changes: 6 additions & 6 deletions helm/delaware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ image:
imagePullSecrets:
- name: github

replicaCount: 1
replicaCount: 2

autoscaling:
enabled: true
enabled: false
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 120
targetMemoryUtilizationPercentage: 120

resources:
requests:
cpu: 500m
memory: 4Gi
ephemeral-storage: 100Mi
cpu: 1000m
memory: 3Gi
ephemeral-storage: 512Mi

livenessProbe:
# enabled: false
Expand Down Expand Up @@ -87,7 +87,7 @@ configMap:
CANON_CMS_ENABLE: "false"
CANON_CMS_FORCE_HTTPS: "true"
CANON_CMS_GENERATOR_TIMEOUT: "600000"
CANON_CMS_LOGGING: "false"
CANON_CMS_LOGGING: "true"
CANON_CMS_MINIMUM_ROLE: "1"
CANON_CMS_REQUESTS_PER_SECOND: "60"
CANON_CONST_CART: "datausa-cart-v3"
Expand Down

0 comments on commit a9a233d

Please sign in to comment.