Skip to content

Commit

Permalink
fix: properly populate AllowSchedulingOnMasters option in gen config RPC
Browse files Browse the repository at this point in the history
Previosly it was set only if NetworkConfig is not nil.

Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com>
  • Loading branch information
Unix4ever authored and talos-bot committed May 14, 2021
1 parent 071f044 commit bed6b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ func Generate(ctx context.Context, in *machine.GenerateConfigurationRequest) (re
CNIUrls: in.ClusterConfig.ClusterNetwork.CniConfig.Urls,
}))
}

options = append(options, generate.WithAllowSchedulingOnMasters(in.ClusterConfig.AllowSchedulingOnMasters))
}

options = append(options, generate.WithAllowSchedulingOnMasters(in.ClusterConfig.AllowSchedulingOnMasters))

var (
input *generate.Input
cfgBytes []byte
Expand Down

0 comments on commit bed6b15

Please sign in to comment.