Skip to content

Commit

Permalink
debug: added busybox images
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Sep 26, 2023
1 parent 628c04f commit dcc3e84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
cosign-release: 'v2.2.0'
- name: Create ephemeral keys
run: |
make test-generate-key
make test-generate-keys
- name: Build test image
run: |
make test-image
Expand All @@ -60,4 +60,5 @@ jobs:
make test-deploy
- name: Run End2End Tests
run: |
make test-busybox-images
make test-e2e
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ test-create-cluster:
@echo "Create test namespace..."
@kubectl create namespace test-cases

test-generate-key:
@echo "Generating key..."
test-generate-keys:
@echo "Generating cosign keys..."
@export COSIGN_PASSWORD="" && \
cosign generate-key-pair
cosign generate-key-pair && \
cosign generate-key-pair --output-key-prefix second


test-busybox-images:
@echo "Building busybox image..."
Expand All @@ -22,10 +24,6 @@ test-busybox-images:
@export COSIGN_PASSWORD="" && \
cosign sign --tlog-upload=false --key cosign.key k3d-registry.localhost:5000/busybox:latest && \
cosign sign --tlog-upload=false --key second.key k3d-registry.localhost:5000/busybox:second
@echo "Importing to cluster..."
@k3d image import k3d-registry.localhost:5000/busybox:latest --cluster cosign-tests
@k3d image import k3d-registry.localhost:5000/busybox:second --cluster cosign-tests

test-image:
@echo "Checking for cosign.key..."
@test -f cosign.key || (echo "cosign.key not found. Run 'make generate-key' to generate one." && exit 1)
Expand Down
2 changes: 1 addition & 1 deletion test/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func testOneContainerPubKeyEnvVar(t *testing.T) {
Containers: []corev1.Container{
{
Name: "test-case-1",
Image: "k3d-registry.localhost:5000/busybox:dev@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee",
Image: "k3d-registry.localhost:5000/busybox:latest",
Command: []string{
"sh",
"-c",
Expand Down

0 comments on commit dcc3e84

Please sign in to comment.