Skip to content

Commit

Permalink
📂 Apply fork specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
serverless-qe committed Sep 13, 2024
1 parent 7cd9213 commit 8707781
Show file tree
Hide file tree
Showing 30 changed files with 828 additions and 279 deletions.
5 changes: 5 additions & 0 deletions .deviate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
upstream: https://github.com/knative-sandbox/kn-plugin-event.git
tags:
synchronize: true
resyncReleases:
enabled: true
11 changes: 11 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Code Style

on:
pull_request:
branches: [ 'main', 'release-*' ]

jobs:

style:
uses: knative/actions/.github/workflows/style.yaml@main

18 changes: 18 additions & 0 deletions .github/workflows/images/test/eventshub/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS builder

RUN microdnf install -y golang

COPY . /code
WORKDIR /code

RUN go build \
-o ./build/eventshub \
knative.dev/reconciler-test/cmd/eventshub

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

COPY --from=builder /code/build/eventshub /app/eventshub

USER 65532

ENTRYPOINT ["/app/eventshub"]
18 changes: 18 additions & 0 deletions .github/workflows/images/test/wathola-forwarder/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS builder

RUN microdnf install -y golang

COPY . /code
WORKDIR /code

RUN go build \
-o ./build/wathola-forwarder \
knative.dev/eventing/test/test_images/wathola-forwarder

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

COPY --from=builder /code/build/wathola-forwarder /app/wathola-forwarder

USER 65532

ENTRYPOINT ["/app/wathola-forwarder"]
14 changes: 0 additions & 14 deletions .github/workflows/knative-go-build.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/knative-go-test.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/knative-security.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/knative-stale.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/knative-style.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/knative-verify.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/multiarch-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Multiarch builds

on:
push:
branches-ignore:
- 'main'
- 'ci/*'

jobs:
build-image:
name: Build image
uses: openshift-knative/hack/.github/workflows/multiarch-containerfile-build.yaml@main
secrets: inherit
strategy:
matrix:
image:
- eventshub
- wathola-forwarder
with:
image: ${{ matrix.image }}
containerfile: .github/workflows/images/test/${{ matrix.image }}/Containerfile
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CI ?= false
PROW_JOB_ID ?= 0
PROW = $(shell [ "$(CI)" = "true" ] && [ "$(PROW_JOB_ID)" != "0" ] && echo "true" || echo "false")

ifeq ($(PROW),true)
export HOME = /tmp
export TEST_IMAGES_DIR = /usr/bin
endif

build:
./mage build
.PHONY: build

unit:
./mage test
.PHONY: unit

e2e:
openshift/e2e-tests.sh
.PHONY: e2e
20 changes: 14 additions & 6 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# The OWNERS file is used by prow to automatically merge approved PRs.

approvers:
- technical-oversight-committee
- knative-release-leads
- client-writers
- kn-plugin-event-approvers
- rhuss
- dsimansk
- mgencur
- cardil
- openshift-cherrypick-robot

reviewers:
- client-writers
- kn-plugin-event-approvers
- rhuss
- dsimansk
- mgencur
- cardil
- jrangelramos
- lkingland
- matejvasek
Loading

0 comments on commit 8707781

Please sign in to comment.