Skip to content

Commit

Permalink
Merge pull request #1497 from stgraber/cluster
Browse files Browse the repository at this point in the history
incusd/cluster: Skip project restrictions during join
  • Loading branch information
hallyn authored Dec 12, 2024
2 parents aaad08a + 1d86e78 commit 3567792
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/incusd/api_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,12 +978,20 @@ func clusterInitMember(d incus.InstanceServer, client incus.InstanceServer, memb
continue
}

// We only care about project features at this stage, leave the restrictions and limits for later.
features := map[string]string{}
for k, v := range p.Config {
if strings.HasPrefix(k, "features.") {
features[k] = v
}
}

// Request that the project be created first before the project specific networks.
data.Projects = append(data.Projects, api.ProjectsPost{
Name: p.Name,
ProjectPut: api.ProjectPut{
Description: p.Description,
Config: p.Config,
Config: features,
},
})

Expand Down

0 comments on commit 3567792

Please sign in to comment.