Skip to content

Commit

Permalink
Disable hierarchy cache for java agent
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Jan 21, 2025
1 parent 6e529fc commit 9f1fdb8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public IEnumerable<V1EnvVar> GenerateEnvVars(PatchingContext context)
yield return new V1EnvVar("CONTRAST__AGENT__CONTRAST_WORKING_DIR", context.WritableMountPath);
yield return new V1EnvVar("CONTRAST__AGENT__LOGGER__PATH", $"{context.WritableMountPath}/logs/contrast_agent.log");
yield return new V1EnvVar("CONTRAST_INSTALL_SOURCE", "kubernetes-operator");

//Disable hierarchy cache since we are in containers
yield return new V1EnvVar("CONTRAST__ASSESS__CACHE__HIERARCHY_ENABLE", "false");
}

public void PatchContainer(V1Container container, PatchingContext context)
Expand Down

0 comments on commit 9f1fdb8

Please sign in to comment.