Skip to content

Commit

Permalink
Backport: Set namespace for template server in agent (#10757) (#10784)
Browse files Browse the repository at this point in the history
* Add list peers to DR secondaries (#10746)

* Fix build (#10749)

* Move the declaration to a OSS build tag file to not have it collide w… (#10750)

* Move the declaration to a OSS build tag file to not have it collide with ent declarations

* Add comment

* Remove comment to trigger ci

* Fix remove peers check (#10758)

* Remove peer DR op token check only on secondaries (#10765)

* Set namespace for template server in agent (#10757)

* Set namespace for template server in agent

* cl++
  • Loading branch information
vishalnayak committed Jan 26, 2021
1 parent c685147 commit b11e9e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/10757.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
agent: Set namespace for template server in agent.
```
1 change: 1 addition & 0 deletions command/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ func (c *AgentCommand) Run(args []string) int {
// Check if a default namespace has been set
mountPath := config.AutoAuth.Method.MountPath
if cns := config.AutoAuth.Method.Namespace; cns != "" {
namespace = cns
// Only set this value if the env var is empty, otherwise we end up with a nested namespace
if ens := os.Getenv(api.EnvVaultNamespace); ens == "" {
mountPath = path.Join(cns, mountPath)
Expand Down

0 comments on commit b11e9e9

Please sign in to comment.