Skip to content

Commit

Permalink
Replaced deprecated envars (#613)
Browse files Browse the repository at this point in the history
Replaced `MIRRORD_AGENT_IMPERSONATED_POD_NAME` and `MIRRORD_AGENT_IMPERSONATED_POD_NAMESPACE` envars to the new one.

Co-authored-by: Eyal Bukchin <[email protected]>
  • Loading branch information
jamowei and eyalb181 committed Oct 23, 2022
1 parent 37e9578 commit 52edc56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
### Fixed
- Don't ignore passed `--pod-namespace` argument, closes
[[#605](https://github.com/metalbear-co/mirrord/issues/605)]
- Replace deprecated environment variables in IntelliJ plugin
- Issues with IntelliJ extension when debugging Kotlin applications
- Scrollable list for pods and namespaces for IntelliJ extension, closes [[#610](https://github.com/metalbear-co/mirrord/issues/610)]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class MirrordListener : ExecutionListener {

// SUCCESS: set the respective environment variables
if (dialogBuilder.show() == DialogWrapper.OK_EXIT_CODE && !pods.isSelectionEmpty) {
mirrordEnv["MIRRORD_AGENT_IMPERSONATED_POD_NAME"] = pods.selectedValue as String
mirrordEnv["MIRRORD_AGENT_IMPERSONATED_POD_NAMESPACE"] = choseNamespace as String
mirrordEnv["MIRRORD_IMPERSONATED_TARGET"] = "pod/${pods.selectedValue as String}"
mirrordEnv["MIRRORD_TARGET_NAMESPACE"] = choseNamespace as String
mirrordEnv["MIRRORD_FILE_OPS"] = fileOps.isSelected.toString()
mirrordEnv["MIRRORD_AGENT_TCP_STEAL_TRAFFIC"] = trafficStealing.isSelected.toString()
mirrordEnv["MIRRORD_EPHEMERAL_CONTAINER"] = ephemeralContainerCheckBox.isSelected.toString()
Expand Down

0 comments on commit 52edc56

Please sign in to comment.