Skip to content

Commit

Permalink
fix: update webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
sadadw1 committed May 23, 2024
1 parent a352493 commit 5c971d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class HeraWebhookService {
private static final String MIONE_PROJECT_ENV_ID = "MIONE_PROJECT_ENV_ID";
// cad need env
// "-" replace of "_"
private static final String APPLICATION = "APPLICATION";
private static final String APPLICATION = "application";
private static final String SERVER_ENV = "serverEnv";

private static final String POD_IP_CAD = "POD_IP";
Expand Down Expand Up @@ -508,7 +508,7 @@ private String getAppValueByAppKeyType(JSONObject admissionRequest) {
private String getEnvValueByEnvKeyType(JSONObject admissionRequest) {
String envLabelValue = null;
if ("label".equals(envKeyType)) {
envLabelValue = getLabelValue(appKeyName, admissionRequest.getJSONObject("object")
envLabelValue = getLabelValue(envKeyName, admissionRequest.getJSONObject("object")
.getJSONObject("metadata").getJSONObject("labels"));
} else if ("env".equals(envKeyType)) {
envLabelValue = System.getenv(envKeyName);
Expand Down

0 comments on commit 5c971d2

Please sign in to comment.