diff --git a/src/main/resources/adopters.json b/config/adopters.json similarity index 100% rename from src/main/resources/adopters.json rename to config/adopters.json diff --git a/src/main/k8s/production.yml b/src/main/k8s/production.yml index 61b3231ad82a787388731991186691841dffda56..b6a0406ee089f4a30cd18083035277e77fee2846 100644 --- a/src/main/k8s/production.yml +++ b/src/main/k8s/production.yml @@ -41,6 +41,17 @@ spec: requests: cpu: 200m memory: 128Mi + volumeMounts: + - name: adopters + mountPath: "/config" + readOnly: true + volumes: + - name: adopters + configMap: + name: eclipsefdn-project-adopters-map + items: + - key: "adopters_json_compressed" + path: "adopters.json" --- apiVersion: "v1" kind: "Service" diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e9bcfcc8e2ccfda338270285e48b166e86a8406c..85a9786836ea7c11a37fb14bc684ebf6d7a7883f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,4 +2,7 @@ org.eclipsefoundation.adopters.api.ProjectsAPI/mp-rest/url=https://projects.ecli ## OAUTH CONFIG quarkus.http.port=8080 -quarkus.http.root-path=/adopters \ No newline at end of file +quarkus.http.root-path=/adopters + +## Adopters raw location +eclipse.adopters.path.json=/config/adopters.json \ No newline at end of file