Skip to content

Commit

Permalink
Add 0.7.2 image (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrutlucian94 authored Nov 11, 2024
1 parent a95945e commit 92fb91f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
File renamed without changes.
36 changes: 36 additions & 0 deletions 0.7.2/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: metrics-server
summary: ROCK for the metrics-server Project.
description: This ROCK is a drop in replacement for the metrics-server/metrics-server image.
version: "0.7.2"
license: Apache-2.0

base: bare
build-base: [email protected]
platforms:
amd64:
arm64:

services:
metrics-server:
override: replace
summary: "metrics-server service"
startup: enabled
command: "/metrics-server [ ]"
on-failure: shutdown

entrypoint-service: metrics-server

parts:
metrics-server:
plugin: nil
source: https://github.com/kubernetes-sigs/metrics-server.git
source-type: git
source-tag: v0.7.2
source-depth: 1
build-packages:
- build-essential
build-snaps:
- go/1.22/stable
override-build: |
make ARCH=${CRAFT_TARGET_ARCH}
cp $CRAFT_PART_BUILD/metrics-server $CRAFT_PART_INSTALL
2 changes: 1 addition & 1 deletion tests/sanity/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from k8s_test_harness.util import docker_util, env_util


@pytest.mark.parametrize("image_version", ["0.7.0"])
@pytest.mark.parametrize("image_version", ["0.7.0", "0.7.2"])
def test_sanity(image_version):
rock = env_util.get_build_meta_info_for_rock_version(
"metrics-server", image_version, "amd64"
Expand Down

0 comments on commit 92fb91f

Please sign in to comment.