Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #85

Merged
merged 3 commits into from
Apr 2, 2024
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
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ test-kafka-broker-upstream-nightly:
test-kafka-broker-midstream-nightly:
./bin/test-kafka-broker-midstream-nightly.sh || exit 1

test-kafka-broker-namespaced-upstream-nightly:
./bin/test-kafka-broker-namespaced-upstream-nightly.sh || exit 1

test-kafka-broker-namespaced-midstream-nightly:
./bin/test-kafka-broker-namespaced-midstream-nightly.sh || exit 1
generate:
./hack/generate.sh
2 changes: 1 addition & 1 deletion bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export RECEIVER_DEPLOYMENT_REPLICAS=${RECEIVER_DEPLOYMENT_REPLICAS:-10}
export SKIP_CREATE_TEST_RESOURCES=${SKIP_CREATE_TEST_RESOURCES:-false}
export TEST_CASE_NAMESPACE=${TEST_CASE_NAMESPACE-"perf-test"}
export WORKER_ONE=${WORKER_ONE:-node-role.kubernetes.io/worker=""}
export NUM_WORKER_NODES=${NUM_WORKER_NODES:-"15"}
export NUM_WORKER_NODES=${NUM_WORKER_NODES:-"10"}
export ARTIFACT_DIR=${ARTIFACT_DIR:-"_output"}

alias kubectl=oc
Expand Down
1 change: 0 additions & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash


# This script install the system using manifests in
# `installation/manifests/product` by overriding
# the variable KNATIVE_MANIFESTS (see `run.sh`
Expand Down
30 changes: 0 additions & 30 deletions bin/test-kafka-broker-namespaced-midstream-nightly.sh

This file was deleted.

29 changes: 0 additions & 29 deletions bin/test-kafka-broker-namespaced-upstream-nightly.sh

This file was deleted.

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/openshift-knative/eventing-hyperfoil-benchmark

go 1.21
11 changes: 11 additions & 0 deletions hack/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -euo pipefail

repo_root_dir=$(dirname "$(realpath "${BASH_SOURCE[0]}")")/..

GO111MODULE=off go get -u github.com/openshift-knative/hack/cmd/generate

$(go env GOPATH)/bin/generate \
--root-dir "${repo_root_dir}" \
--generators dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
namespace: openshift-marketplace
spec:
displayName: Serverless Operator
image: registry.ci.openshift.org/knative/openshift-serverless-nightly:serverless-index
image: registry.ci.openshift.org/knative/main:serverless-index
publisher: Red Hat
sourceType: grpc
---
Expand Down
2 changes: 1 addition & 1 deletion installation/manifests/product/100-knative-eventing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: operator.knative.dev/v1alpha1
apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
name: knative-eventing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: amq-streams
namespace: openshift-operators
spec:
channel: stable
channel: amq-streams-2.6.x
name: amq-streams
source: redhat-operators
sourceNamespace: openshift-marketplace
6 changes: 3 additions & 3 deletions installation/manifests/upstream-nightly/100-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: kafka
spec:
kafka:
version: 3.3.1
version: 3.6.0
replicas: 3
listeners:
- name: plain
Expand All @@ -27,8 +27,8 @@ spec:
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
log.message.format.version: "3.3"
inter.broker.protocol.version: "3.3"
log.message.format.version: "3.6"
inter.broker.protocol.version: "3.6"
auto.create.topics.enable: false
storage:
type: persistent-claim
Expand Down
26 changes: 21 additions & 5 deletions openshift/ci-operator/build-image/Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Dockerfile to bootstrap build and test in openshift-ci
# DO NOT EDIT! Generated Dockerfile.

FROM registry.ci.openshift.org/openshift/release:golang-1.18
# Dockerfile to bootstrap build and test in openshift-ci
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.21-openshift-4.16 as builder

# Add kubernetes repository
ADD openshift/ci-operator/build-image/kubernetes.repo /etc/yum.repos.d/
RUN echo "[kubernetes]" >> /etc/yum.repos.d/kubernetes.repo && \
echo "name=Kubernetes" >> /etc/yum.repos.d/kubernetes.repo && \
echo "baseurl=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/" >> /etc/yum.repos.d/kubernetes.repo && \
echo "enabled=1" >> /etc/yum.repos.d/kubernetes.repo && \
echo "gpgcheck=1" >> /etc/yum.repos.d/kubernetes.repo && \
echo "gpgkey=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/repodata/repomd.xml.key" >> /etc/yum.repos.d/kubernetes.repo

RUN yum install -y kubectl httpd-tools

RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
chmod 700 ./get-helm-3

RUN ./get-helm-3 --version v3.11.3 --no-sudo && helm version

RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest

# go install creates $GOPATH/.cache with root permissions, we delete it here
# to avoid permission issues with the runtime users
RUN rm -rf $GOPATH/.cache

# Allow runtime users to add entries to /etc/passwd
RUN chmod g+rw /etc/passwd
RUN chmod g+rw /etc/passwd
7 changes: 0 additions & 7 deletions openshift/ci-operator/build-image/kubernetes.repo

This file was deleted.

7 changes: 7 additions & 0 deletions openshift/ci-operator/source-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# DO NOT EDIT! Generated Dockerfile.

FROM src

RUN chmod +x vendor/k8s.io/code-generator/generate-groups.sh || true
RUN chmod +x vendor/knative.dev/pkg/hack/generate-knative.sh || true
RUN chmod +x vendor/k8s.io/code-generator/generate-internal-groups.sh || true
1 change: 1 addition & 0 deletions openshift/images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions openshift/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
project:
tag: knative-nightly
Loading