Skip to content

Commit

Permalink
Update metallb version to 0.14.8 (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello authored Nov 19, 2024
1 parent c17d3cf commit db581ac
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build-scripts/hack/update-component-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# MetalLB Helm repository and chart version
METALLB_REPO = "https://metallb.github.io/metallb"
METALLB_CHART_VERSION = "0.14.5"
METALLB_CHART_VERSION = "0.14.8"


def get_kubernetes_version() -> str:
Expand Down
10 changes: 10 additions & 0 deletions build-scripts/hack/update-metallb-chart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

VERSION="0.14.8"
DIR=$(realpath $(dirname "${0}"))

CHARTS_PATH="$DIR/../../k8s/manifests/charts"

cd "$CHARTS_PATH"

helm pull --repo https://metallb.github.io/metallb metallb --version $VERSION
8 changes: 4 additions & 4 deletions build-scripts/hack/upstream-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ sync:
- source: quay.io/tigera/operator:v1.34.0
target: ghcr.io/canonical/k8s-snap/tigera/operator:v1.34.0
type: image
- source: quay.io/metallb/controller:v0.14.5
target: ghcr.io/canonical/k8s-snap/metallb/controller:v0.14.5
- source: quay.io/metallb/controller:v0.14.8
target: ghcr.io/canonical/k8s-snap/metallb/controller:v0.14.8
type: image
- source: quay.io/metallb/speaker:v0.14.5
target: ghcr.io/canonical/k8s-snap/metallb/speaker:v0.14.5
- source: quay.io/metallb/speaker:v0.14.8
target: ghcr.io/canonical/k8s-snap/metallb/speaker:v0.14.8
type: image
- source: quay.io/frrouting/frr:9.0.2
target: ghcr.io/canonical/k8s-snap/frrouting/frr:9.0.2
Expand Down
Binary file removed k8s/manifests/charts/metallb-0.14.5.tgz
Binary file not shown.
Binary file added k8s/manifests/charts/metallb-0.14.8.tgz
Binary file not shown.
10 changes: 5 additions & 5 deletions src/k8s/pkg/k8sd/features/metallb/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (
ChartMetalLB = helm.InstallableChart{
Name: "metallb",
Namespace: "metallb-system",
ManifestPath: filepath.Join("charts", "metallb-0.14.5.tgz"),
ManifestPath: filepath.Join("charts", "metallb-0.14.8.tgz"),
}

// ChartMetalLBLoadBalancer represents manifests to deploy MetalLB L2 or BGP resources.
Expand All @@ -22,16 +22,16 @@ var (
}

// controllerImageRepo is the image to use for metallb-controller.
controllerImageRepo = "ghcr.io/canonical/k8s-snap/metallb/controller"
controllerImageRepo = "ghcr.io/canonical/metallb-controller"

// ControllerImageTag is the tag to use for metallb-controller.
ControllerImageTag = "v0.14.5"
ControllerImageTag = "v0.14.8-ck0"

// speakerImageRepo is the image to use for metallb-speaker.
speakerImageRepo = "ghcr.io/canonical/k8s-snap/metallb/speaker"
speakerImageRepo = "ghcr.io/canonical/metallb-speaker"

// speakerImageTag is the tag to use for metallb-speaker.
speakerImageTag = "v0.14.5"
speakerImageTag = "v0.14.8-ck0"

// frrImageRepo is the image to use for frrouting.
frrImageRepo = "ghcr.io/canonical/k8s-snap/frrouting/frr"
Expand Down
2 changes: 2 additions & 0 deletions src/k8s/pkg/k8sd/features/metallb/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ func enableLoadBalancer(ctx context.Context, snap snap.Snap, loadbalancer types.
"repository": controllerImageRepo,
"tag": ControllerImageTag,
},
"command": "/controller",
},
"speaker": map[string]any{
"image": map[string]any{
"repository": speakerImageRepo,
"tag": speakerImageTag,
},
"command": "/speaker",
// TODO(neoaggelos): make frr enable/disable configurable through an annotation
// We keep it disabled by default
"frr": map[string]any{
Expand Down

0 comments on commit db581ac

Please sign in to comment.