Skip to content

Commit

Permalink
fix(platform): path annotation to all master (tkestack#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxiaoliang committed Nov 26, 2020
1 parent f033396 commit 885050e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/platform/provider/baremetal/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ func (p *Provider) EnsureStoreCredential(ctx context.Context, c *v1.Cluster) err
func (p *Provider) EnsurePatchAnnotation(ctx context.Context, c *v1.Cluster) error {
machines := map[bool][]platformv1.ClusterMachine{
true: c.Spec.ScalingMachines,
false: c.Spec.Machines[1:]}[len(c.Spec.ScalingMachines) > 0]
false: c.Spec.Machines}[len(c.Spec.ScalingMachines) > 0]
fileData := map[string]string{
constants.EtcdPodManifestFile: ` annotations:\n scheduler.alpha.kubernetes.io/critical-pod: ""\n tke.prometheus.io/scrape: "true"\n prometheus.io/scheme: "https"\n prometheus.io/port: "2379"`,
constants.KubeAPIServerPodManifestFile: ` annotations:\n scheduler.alpha.kubernetes.io/critical-pod: ""\n tke.prometheus.io/scrape: "true"\n prometheus.io/scheme: "https"\n prometheus.io/port: "6443"`,
Expand Down

0 comments on commit 885050e

Please sign in to comment.