Skip to content

Commit

Permalink
fix(cert-manager): e2e and add missing reference on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smerlos authored and Santiago Merlos committed May 21, 2024
1 parent f7a0460 commit f9bfc63
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ steps:
VALIDATE_DOCKERFILE: "false"
# Disable natural language checks
VALIDATE_NATURAL_LANGUAGE: "false"
# Disable linter on helper files in the test folder
FILTER_REGEX_EXCLUDE: (katalog/tests/helper)
depends_on:
- clone

Expand Down Expand Up @@ -120,7 +122,7 @@ steps:
- Generate Kind Config file

- name: End-to-End Tests
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.1.1_1.9.4_1.26.3_3.5.3_4.33.3
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
pull: always
network_mode: host
environment:
Expand Down Expand Up @@ -191,7 +193,7 @@ steps:
- Generate Kind Config file

- name: End-to-End Tests
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.1.1_1.9.4_1.26.3_3.5.3_4.33.3
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
pull: always
network_mode: host
environment:
Expand Down Expand Up @@ -262,7 +264,7 @@ steps:
- Generate Kind Config file

- name: End-to-End Tests
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.1.1_1.9.4_1.26.3_3.5.3_4.33.3
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
pull: always
network_mode: host
environment:
Expand Down Expand Up @@ -333,7 +335,7 @@ steps:
- Generate Kind Config file

- name: End-to-End Tests
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.1.1_1.9.4_1.26.3_3.5.3_4.33.3
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
pull: always
network_mode: host
environment:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</h1>
<!-- markdownlint-enable MD033 -->

![Release](https://img.shields.io/badge/Latest%20Release-v2.3.0-blue)
![Release](https://img.shields.io/badge/Latest%20Release-v2.3.1-blue)
![License](https://img.shields.io/github/license/sighupio/fury-kubernetes-ingress?label=License)
![Slack](https://img.shields.io/badge/slack-@kubernetes/fury-yellow.svg?logo=slack&label=Slack)

Expand Down
12 changes: 6 additions & 6 deletions katalog/tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,17 @@ EOF
assert_success
}

# Ensure Docker is installed and verify the ACME HTTP01 solver image
@test "Verify ACME HTTP01 solver image and Docker installation" {
if ! command -v docker &>/dev/null; then
echo "Docker is not installed."
# Ensure skopeo is installed and verify the ACME HTTP01 solver image
@test "Verify ACME HTTP01 solver image and skopeo installation" {
if ! command -v skopeo &>/dev/null; then
echo "skopeo is not installed."
exit 1
fi
echo "Docker is installed."
echo "skopeo is installed."

solver_image=$(kubectl get deployment cert-manager -n cert-manager -o jsonpath='{.spec.template.spec.containers[0].args}' | grep -oP '(?<=--acme-http01-solver-image=)[^"]+')

if docker manifest inspect "$solver_image" &>/dev/null; then
if skopeo inspect "docker://$solver_image" &>/dev/null; then
echo "Image manifest for $solver_image found."
else
echo "Image manifest for $solver_image not found."
Expand Down

0 comments on commit f9bfc63

Please sign in to comment.