Skip to content

Add instance flag support#6789

Draft
kfox1111 wants to merge 2 commits intospiffe:mainfrom
kfox1111:instance
Draft

Add instance flag support#6789
kfox1111 wants to merge 2 commits intospiffe:mainfrom
kfox1111:instance

Conversation

@kfox1111
Copy link
Copy Markdown
Contributor

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Description of change
Adds easy multiinstance support

Which issue this PR fixes
fixes #6247

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>

func (c *agentConfig) getAddr() (net.Addr, error) {
return util.GetUnixAddrWithAbsPath(c.SocketPath)
resolved := common.ResolveSocketPath(c.SocketPath, common.DefaultSocketPath, "SPIFFE_PUBLIC_SOCKET_TEMPLATE", c.Instance)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this variable should be SPIRE_PUBLIC_SOCKET_TEMPLATE. We can't use anything from the SPIFFE_ namespace since the spec might want to use that later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instance flag and pathing

2 participants