Skip to content

Commit

Permalink
incusd/cluster: Skip project restrictions during join
Browse files Browse the repository at this point in the history
Closes #1390

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Dec 12, 2024
1 parent aaad08a commit 1d86e78
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 1d86e78

Please sign in to comment.