Skip to content

Commit

Permalink
deployctl does not generate clusterhost platform network
Browse files Browse the repository at this point in the history
Test plan:
PASS: 'make' and 'make test' ran successfully

PASS: deployctl tool generates the cluster-host platformNetworks
and addresspools without --minimal-config

PASS: deployctl tool doesnot generate cluster-host platformNetworks
and addresspools with --minimal-config

Signed-off-by: vineela-pachchipulusu <Vineela.Pachchipulusu@windriver.com>
  • Loading branch information
vineela-pachchipulusu committed Dec 18, 2024
1 parent 22236ba commit 4016d8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ func (db *DeploymentBuilder) buildPlatformNetworks(d *Deployment) error {
}

d.PlatformNetworks = make([]*starlingxv1.PlatformNetwork, 0)
always_generate_networks := []string{"storage", "mgmt", "oam", "admin"}
always_generate_networks := []string{"storage", "mgmt", "oam", "admin", "cluster-host"}
sort.Strings(always_generate_networks)
for _, n := range results {
associated_pools_name = []string{}
Expand Down
3 changes: 2 additions & 1 deletion build/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ func (in *CoreNetworkFilter) Filter(platform_network *v1.PlatformNetwork, deploy
for _, pn := range deployment.PlatformNetworks {
if !(pn.Spec.Type == oamNetwork ||
pn.Spec.Type == mgmtNetwork ||
pn.Spec.Type == adminNetwork) {
pn.Spec.Type == adminNetwork ||
pn.Spec.Type == clusterNetwork) {
filtered_platform_networks = append(filtered_platform_networks, pn)
for _, name := range pn.Spec.AssociatedAddressPools {
for _, pool := range deployment.AddressPools {
Expand Down

0 comments on commit 4016d8a

Please sign in to comment.