Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ E2E_REGISTRY_IMAGE=localhost/e2e-test-registry:devel
image-registry: export GOOS=linux
image-registry: export GOARCH=amd64
image-registry: ## Build the testdata catalog used for e2e tests and push it to the image registry
go build $(GO_BUILD_FLAGS) $(GO_BUILD_EXTRA_FLAGS) -tags '$(GO_BUILD_TAGS)' -ldflags '$(GO_BUILD_LDFLAGS)' -gcflags '$(GO_BUILD_GCFLAGS)' -asmflags '$(GO_BUILD_ASMFLAGS)' -o ./testdata/registry/bin/registry ./testdata/registry/registry.go
go build $(GO_BUILD_FLAGS) $(GO_BUILD_EXTRA_FLAGS) -tags '$(GO_BUILD_TAGS)' -ldflags '$(GO_BUILD_LDFLAGS)' -gcflags '$(GO_BUILD_GCFLAGS)' -asmflags '$(GO_BUILD_ASMFLAGS)' -o ./testdata/push/bin/push ./testdata/push/push.go
$(CONTAINER_RUNTIME) build -f ./testdata/Dockerfile -t $(E2E_REGISTRY_IMAGE) ./testdata
$(CONTAINER_RUNTIME) save $(E2E_REGISTRY_IMAGE) | $(KIND) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[host."https://localhost:30000"]
capabilities = ["pull", "resolve"]
skip_verify = true
7 changes: 7 additions & 0 deletions kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ nodes:
apiServer:
extraArgs:
enable-admission-plugins: OwnerReferencesPermissionEnforcement
extraMounts:
- hostPath: ./hack/kind-config/containerd/certs.d
containerPath: /etc/containerd/certs.d
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d"
1 change: 0 additions & 1 deletion testdata/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
push/bin
registry/bin
3 changes: 0 additions & 3 deletions testdata/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ FROM gcr.io/distroless/static:nonroot

WORKDIR /

COPY registry/bin/registry registry
COPY push/bin/push push

COPY images images

EXPOSE 5000

USER 65532:65532
6 changes: 1 addition & 5 deletions testdata/build-test-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ spec:
spec:
containers:
- name: registry
image: ${image}
image: registry:3
imagePullPolicy: IfNotPresent
command:
- /registry
args:
- "--registry-address=:5000"
volumeMounts:
- name: certs-vol
mountPath: "/certs"
Expand Down
15 changes: 0 additions & 15 deletions testdata/registry/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions testdata/registry/go.mod

This file was deleted.

36 changes: 0 additions & 36 deletions testdata/registry/go.sum

This file was deleted.

40 changes: 0 additions & 40 deletions testdata/registry/registry.go

This file was deleted.