cluster: introduce Region.Cluser and m/{region}/k8s_token to store a cluster's token #42

Merged
karasz merged 3 commits from pr-amery-k8s_token into main 2024-03-19 17:44:48 +01:00
Showing only changes of commit 7125e28b74 - Show all commits
+2 -2
View File
@@ -191,7 +191,7 @@ func (z *Zone) SyncRegions() error {
}
func (z *Zone) syncZoneRegions() error {
name := filepath.Join(z.Name, "regions")
name := filepath.Join(z.Name, ZoneRegionsFileName)
if len(z.Regions) > 0 {
var buf bytes.Buffer
@@ -210,7 +210,7 @@ func (z *Zone) syncZoneRegions() error {
// SyncRegions writes to the file system the regions covered
// by this meta-region
func (r *Region) SyncRegions() error {
name := filepath.Join(r.Name, "regions")
name := filepath.Join(r.Name, ZoneRegionsFileName)
if len(r.Regions) > 0 {
var buf bytes.Buffer