Skip to content

Commit f8b060f

Browse files
authored
temp patch for orchestrator (#3474)
1 parent 64d729c commit f8b060f

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml

+21-7
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,27 @@ data:
880880
proxy_set_header X-Real-IP $remote_addr;
881881
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
882882
}
883-
location = /model/debug/orchestrator {
884-
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
885-
proxy_pass http://aggregator/debug/orchestrator;
886-
proxy_redirect off;
887-
proxy_set_header Connection "";
888-
proxy_set_header X-Real-IP $remote_addr;
889-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
883+
location /model/debug/orchestrator {
884+
default_type 'application/json';
885+
add_header 'Access-Control-Allow-Origin' '*' always;
886+
add_header 'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, OPTIONS' always;
887+
return 200 '{
888+
\"fsmCurrent\": \"ingesting\",
889+
\"dbReadMemLimit\": \"\",
890+
\"readDBPath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost-1718644669.duckdb.read\",
891+
\"writeDBPath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.write\",
892+
\"dbCopyFilePath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.copy\",
893+
\"currentBucketRefreshInterval\": \"7m30s\",
894+
\"bootCyclesCompleted\": 4,
895+
\"initialCompletionPercentage\": 0,
896+
\"initialSetupStage\": 1,
897+
\"initialSetupLabel\": \"stable\",
898+
\"ingestedDurationHours\": 0,
899+
\"ingestedGiB\": 0,
900+
\"ingestedGiBPerHour\": 0,
901+
\"pendingGiB\": 0,
902+
\"estimatedIngestionHoursRemaining\": 0
903+
}';
890904
}
891905
location = /model/prediction/speccost {
892906
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};

0 commit comments

Comments
 (0)