Skip to content

Commit

Permalink
Update metrics-server to 0.7.2 and chart to 3.12.2 (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello authored Nov 19, 2024
1 parent 00ea902 commit c17d3cf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build-scripts/hack/generate-sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def rock_metrics_server(manifest, extra_files):
with util.git_repo(METRICS_SERVER_ROCK_REPO, METRICS_SERVER_ROCK_TAG) as d:
rock_repo_commit = util.parse_output(["git", "rev-parse", "HEAD"], cwd=d)
# TODO(ben): This should not be hard coded.
rockcraft = (d / "0.7.0/rockcraft.yaml").read_text()
rockcraft = (d / "0.7.2/rockcraft.yaml").read_text()

extra_files["metrics-server/0.7.0/rockcraft.yaml"] = rockcraft
extra_files["metrics-server/0.7.2/rockcraft.yaml"] = rockcraft

rockcraft_yaml = yaml.safe_load(rockcraft)
repo_url = rockcraft_yaml["parts"]["metrics-server"]["source"]
Expand All @@ -256,7 +256,7 @@ def rock_metrics_server(manifest, extra_files):
},
"language": "go",
"details": [
"metrics-server/0.7.0/rockcraft.yaml",
"metrics-server/0.7.2/rockcraft.yaml",
"metrics-server/go.mod",
"metrics-server/go.sum",
],
Expand Down
6 changes: 3 additions & 3 deletions build-scripts/hack/update-metrics-server-chart.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

VERSION="3.12.0"
DIR=`realpath $(dirname "${0}")`
VERSION="3.12.2"
DIR=$(realpath $(dirname "${0}"))

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

cd "$CHARTS_PATH"

Expand Down
Binary file removed k8s/manifests/charts/metrics-server-3.12.0.tgz
Binary file not shown.
Binary file added k8s/manifests/charts/metrics-server-3.12.2.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions src/k8s/pkg/k8sd/features/metrics-server/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ var (
chart = helm.InstallableChart{
Name: "metrics-server",
Namespace: "kube-system",
ManifestPath: filepath.Join("charts", "metrics-server-3.12.0.tgz"),
ManifestPath: filepath.Join("charts", "metrics-server-3.12.2.tgz"),
}

// imageRepo is the image to use for metrics-server.
imageRepo = "ghcr.io/canonical/metrics-server"

// imageTag is the image tag to use for metrics-server.
imageTag = "0.7.0-ck2"
imageTag = "0.7.2-ck0"
)

0 comments on commit c17d3cf

Please sign in to comment.