forked from knative/eventing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94889f5
commit 0478ed5
Showing
70 changed files
with
11,354 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Use :nonroot base image for all containers | ||
defaultBaseImage: gcr.io/distroless/static:nonroot | ||
defaultBaseImage: registry.access.redhat.com/ubi8/ubi-minimal:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,8 +100,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,8 +100,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,8 +79,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
ports: | ||
- name: metrics | ||
|
1 change: 0 additions & 1 deletion
1
config/channels/in-memory-channel/configmaps/observability.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,8 +77,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
ports: | ||
- name: metrics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,5 +97,3 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,8 +95,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
livenessProbe: | ||
httpGet: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,5 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
serviceAccountName: pingsource-mt-adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2022 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
namespace: knative-eventing | ||
name: openshift-serverless-view-eventing-configmaps | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: openshift-serverless-view-eventing-configmaps | ||
namespace: knative-eventing | ||
subjects: | ||
- kind: Group | ||
name: system:authenticated | ||
apiGroup: rbac.authorization.k8s.io | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: openshift-serverless-view-eventing-configmaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2020 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config-openshift-trusted-cabundle | ||
namespace: knative-eventing | ||
labels: | ||
app.kubernetes.io/version: devel | ||
app.kubernetes.io/name: knative-eventing | ||
config.openshift.io/inject-trusted-cabundle: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,5 +60,3 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,3 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,3 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
sink: | ||
ref: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,3 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,6 @@ spec: | |
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
sink: | ||
ref: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# DO NOT EDIT! Generated Dockerfile. | ||
|
||
# Dockerfile to bootstrap build and test in openshift-ci | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
RUN echo "[kubernetes]" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "name=Kubernetes" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64" >> /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 "repo_gpgcheck=0" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg" >> /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 |
20 changes: 20 additions & 0 deletions
20
openshift/ci-operator/knative-images/apiserver_receive_adapter/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/apiserver_receive_adapter. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/apiserver_receive_adapter/kodata && \ | ||
go build -o /usr/bin/main ./cmd/apiserver_receive_adapter && \ | ||
cp -r cmd/apiserver_receive_adapter/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/appender. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/appender/kodata && \ | ||
go build -o /usr/bin/main ./cmd/appender && \ | ||
cp -r cmd/appender/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
20 changes: 20 additions & 0 deletions
20
openshift/ci-operator/knative-images/channel_controller/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/in_memory/channel_controller. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/in_memory/channel_controller/kodata && \ | ||
go build -o /usr/bin/main ./cmd/in_memory/channel_controller && \ | ||
cp -r cmd/in_memory/channel_controller/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
20 changes: 20 additions & 0 deletions
20
openshift/ci-operator/knative-images/channel_dispatcher/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/in_memory/channel_dispatcher. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/in_memory/channel_dispatcher/kodata && \ | ||
go build -o /usr/bin/main ./cmd/in_memory/channel_dispatcher && \ | ||
cp -r cmd/in_memory/channel_dispatcher/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
20 changes: 20 additions & 0 deletions
20
openshift/ci-operator/knative-images/controller/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DO NOT EDIT! Generated Dockerfile for cmd/controller. | ||
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /var/run/ko && \ | ||
mkdir -p cmd/controller/kodata && \ | ||
go build -o /usr/bin/main ./cmd/controller && \ | ||
cp -r cmd/controller/kodata /var/run/ko | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
# install the missing zoneinfo to ubi-minimal | ||
RUN microdnf install tzdata | ||
|
||
USER 65532 | ||
|
||
COPY --from=builder /usr/bin/main /usr/bin/main | ||
COPY --from=builder /var/run/ko /var/run/ko | ||
ENTRYPOINT ["/usr/bin/main"] |
Oops, something went wrong.