-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mads/hds): remove custom cache implementation
In mads and hds we were using a custom implementation of a cache. This was unfortunate as go-control-plane has a perfectly working one. The only feature on this cache was the ability to long poll. This was only required in mads and we've changed the handler of mads to make this handling outside of the cache. Signed-off-by: Charly Molter <[email protected]>
- Loading branch information
Showing
28 changed files
with
492 additions
and
1,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package v1 | ||
|
||
import "fmt" | ||
|
||
// GetName returns a name including the mesh which is used for ResourceName in MADS snapshot cache | ||
func (x *MonitoringAssignment) GetName() string { | ||
if x != nil { | ||
dpName := "" | ||
if len(x.Targets) > 0 { | ||
dpName = x.Targets[0].GetName() | ||
} | ||
return fmt.Sprintf("/meshes/%s/dataplanes/%s", x.GetMesh(), dpName) | ||
} | ||
return "" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.