Skip to content

Commit 54492b1

Browse files
authored
Add Tekton OpenShift testing (#720)
Use Tekton to run tests inside OpenShift
1 parent 817e8b5 commit 54492b1

File tree

78 files changed

+1087
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1087
-530
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
5050
df -h
5151
echo "Removing large packages"
52+
sudo docker image prune --all --force
53+
sudo docker builder prune -a
5254
sudo apt-get remove -y '^dotnet-.*' || true
5355
sudo apt-get remove -y '^llvm-.*' || true
5456
sudo apt-get remove -y 'monodoc-http' || true
@@ -60,6 +62,8 @@ jobs:
6062
echo "Removing large directories"
6163
rm -rf /usr/share/dotnet/
6264
sudo rm -rf /usr/local/lib/android
65+
sudo rm -rf /opt/ghc
66+
sudo rm -rf /opt/hostedtoolcache/CodeQL
6367
df -h
6468
6569
- name: Set up JDK
@@ -122,6 +126,9 @@ jobs:
122126
run: |
123127
make kind-load
124128
make remove-all-images
129+
sudo docker image prune --all --force
130+
sudo docker builder prune -a
131+
df -h
125132
126133
- name: Unit Tests
127134
shell: bash

.github/workflows/istio-tests.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
5656
df -h
5757
echo "Removing large packages"
58+
sudo docker image prune --all --force
59+
sudo docker builder prune -a
5860
sudo apt-get remove -y '^dotnet-.*' || true
5961
sudo apt-get remove -y '^llvm-.*' || true
6062
sudo apt-get remove -y 'monodoc-http' || true
@@ -66,6 +68,8 @@ jobs:
6668
echo "Removing large directories"
6769
rm -rf /usr/share/dotnet/
6870
sudo rm -rf /usr/local/lib/android
71+
sudo rm -rf /opt/ghc
72+
sudo rm -rf /opt/hostedtoolcache/CodeQL
6973
df -h
7074
7175
- name: Set up JDK
@@ -108,21 +112,20 @@ jobs:
108112
make kind
109113
kubectl version
110114
kubectl get nodes
111-
docker pull gcr.io/distroless/java
112-
docker pull gcr.io/distroless/java11-debian11
113-
docker pull gcr.io/distroless/java17-debian11
114-
docker pull gcr.io/distroless/java17-debian12
115-
docker pull gcr.io/distroless/java21-debian12
116115
117116
- name: Build
118117
shell: bash
119-
run: make all
118+
run: |
119+
make all
120120
121121
- name: Load Images to KinD
122122
# Load the images just built to the KinD cluster
123123
shell: bash
124124
run: |
125125
make kind-load
126+
sudo docker image prune --all --force
127+
sudo docker builder prune -a
128+
df -h
126129
127130
- name: Istio Tests
128131
shell: bash

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ test/**/test-report.xml
5858
api/**/zz_*.go
5959
bundle.Dockerfile
6060
/__debug_bin
61-
hack/istio*/
6261
/java/certs/
6362
.flattened-pom.xml

Makefile

Lines changed: 118 additions & 81 deletions
Large diffs are not rendered by default.

config/manifests/bases/coherence-operator.clusterserviceversion.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ metadata:
2121
features.operators.openshift.io/token-auth-aws: "false"
2222
features.operators.openshift.io/token-auth-azure: "false"
2323
features.operators.openshift.io/token-auth-gcp: "false"
24+
operatorframework.io/arch.amd64: supported
25+
operatorframework.io/arch.arm64: supported
26+
operatorframework.io/os.linux: supported
2427
operators.openshift.io/infrastructure-features: '["disconnected"]'
2528
operators.operatorframework.io/builder: operator-sdk-v1.39.1
2629
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
2730
repository: https://github.com/oracle/coherence-operator
2831
support: Oracle Corporation
29-
name: coherence-operator.v3.4.2
32+
name: coherence-operator.v3.5.0
3033
spec:
3134
apiservicedefinitions: {}
3235
customresourcedefinitions:

docs/metrics/030_importing.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ documentation.
7676
At the time of writing, for whatever reason, Grafana does not provide a simple way to bulk import a set of dashboard files.
7777
There are many examples and scripts on available in the community that show how to do this.
7878
The Coherence Operator source contains a script that can be used for this purpose
79-
https://github.com/oracle/coherence-operator/raw/main/hack/grafana-import.sh[grafana-import.sh]
79+
https://github.com/oracle/coherence-operator/raw/main/hack/grafana/grafana-import.sh[grafana-import.sh]
8080
8181
NOTE: The `grafana-import.sh` script requires the https://stedolan.github.io/jq/[JQ] utility to parse json.
8282
@@ -88,7 +88,7 @@ We do not document the credentials here as the default values have been known to
8888
8989
[source,bash]
9090
----
91-
curl -Lo grafana-import.sh https://github.com/oracle/coherence-operator/raw/main/hack/grafana-import.sh
91+
curl -Lo grafana-import.sh https://github.com/oracle/coherence-operator/raw/main/hack/grafana/grafana-import.sh
9292
chmod +x grafana-import.sh
9393
----
9494
[source,bash]

docs/sitegen.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pages:
3333
- "docs/**/*.adoc"
3434
- "examples/**/*.adoc"
3535
- excludes:
36+
- "build/**"
3637
backend:
3738
name: "vuetify"
3839
homePage: "docs/about/01_overview.adoc"

examples/021_deployment/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentati
758758
If installing Prometheus into RBAC enabled k8s clusters, you may need to create the required RBAC resources
759759
as described in the https://prometheus-operator.dev/docs/operator/rbac/[Prometheus RBAC] documentation.
760760
The Coherence Operator contains an example that works with the out-of-the-box Prometheus Operator install
761-
that we use for testing https://raw.githubusercontent.com/oracle/coherence-operator/main/hack/prometheus-rbac.yaml[prometheus-rbac.yaml]
761+
that we use for testing https://raw.githubusercontent.com/oracle/coherence-operator/main/hack/prometheus/prometheus-rbac.yaml[prometheus-rbac.yaml]
762762
This yaml creates a `ClusterRole` with the required permissions and a `ClusterRoleBinding` that binds the role to the
763763
`prometheus-k8s` service account (which is the name of the account created, and used by the Prometheus Operator).
764764
This yaml file can be installed into k8s before installing the Prometheus Operator.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)