Skip to content

Commit

Permalink
MetalLB: update to v0.13.9
Browse files Browse the repository at this point in the history
- now uses a single manifest
- supports aarch64 (ARM), so remove the Intel-only restriction

Signed-off-by: Carlos Laviola <carlos.laviola@gmail.com>
  • Loading branch information
Carlos Laviola committed May 3, 2023
1 parent 22f63dc commit f32ca1a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions cmd/apps/metallb_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import (
)

const (
MetalLBNamespaceManifest = "https://raw.githubusercontent.com/metallb/metallb/v0.10.2/manifests/namespace.yaml"
MetalLBManifest = "https://raw.githubusercontent.com/metallb/metallb/v0.10.2/manifests/metallb.yaml"
MetalLBManifest = "https://raw.githubusercontent.com/metallb/metallb/v0.13.9/config/manifests/metallb-native.yaml"
)

func MakeInstallMetalLB() *cobra.Command {
Expand Down Expand Up @@ -54,19 +53,8 @@ func MakeInstallMetalLB() *cobra.Command {
return err
}

arch := k8s.GetNodeArchitecture()
fmt.Printf("Node architecture: %q\n", arch)

if arch != IntelArch {
return fmt.Errorf(OnlyIntelArch)
}

addressRange, _ := command.Flags().GetString("address-range")

if err := k8s.Kubectl("apply", "-f", MetalLBNamespaceManifest); err != nil {
return err
}

if err := k8s.Kubectl("apply", "-f", MetalLBManifest); err != nil {
return err
}
Expand Down

0 comments on commit f32ca1a

Please sign in to comment.