Skip to content

Commit

Permalink
go/keymanager/client: Support km->km connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawning committed May 4, 2020
1 parent 35a615e commit 2a4c559
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions go/keymanager/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@ func (c *Client) worker() {
case rt := <-rtCh:
kmID = rt.KeyManager
if kmID == nil {
c.logger.Warn("runtime indicates no key manager is needed")
continue
if rt.Kind != registry.KindKeyManager {
c.logger.Warn("runtime indicates no key manager is needed")
continue
}

// We're a key manager client, that's interested in other
// instances of ourself.
kmID = &rt.ID
}

// Fetch current key manager status.
Expand Down

0 comments on commit 2a4c559

Please sign in to comment.