Skip to content

Commit 4a2edf3

Browse files
authored
Merge pull request #249 from dirgim/deprecated-apis-updates
[CVP-2252] Updates to tests for deprecated APIs check
2 parents ad3e266 + 28247fd commit 4a2edf3

32 files changed

+2624
-24
lines changed

.github/workflows/build_and_test_upstream_ci_image.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ jobs:
2525
- name: "Build the upstream_ci_image inside Dockerfiles"
2626
run: |
2727
podman --version
28-
podman build -t upstream_ci_image:latest -f Dockerfiles/ci/Dockerfile --build-arg OPERATOR_SDK_VERSION=v1.4.0
28+
podman build -t upstream_ci_image:latest -f Dockerfiles/ci/Dockerfile
2929
30-
- name: "Run example operator-metadata with missing alm-examples through upstream_ci_image --> positive test"
30+
- name: "Run the unit tests for the upstream operator CI"
3131
continue-on-error: false
3232
run: |
33-
mkdir test_operator_work_dir output_logs
34-
podman run -it -v $PWD:/project/operator-test-playbooks -v ./Dockerfiles/ci/example-metadata-without-alm-annotations:/project/operator_dir -v ./output_logs:/project/output -v ./test_operator_work_dir:/project/test_operator_work_dir -e TEST_NAME=test_for_report_success_empty_alm_examples -e OPERATOR_DIR=/project/operator_dir -e WORK_DIR=/project/output -e OPERATOR_WORK_DIR=/project/test_operator_work_dir/ upstream_ci_image:latest
33+
podman run -it -v $PWD:/project/operator-test-playbooks -v ./Dockerfiles/ci:/project/test_dir -e TEST_DIR=/project/test_dir upstream_ci_image:latest

Dockerfiles/ci/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ ARG OPERATOR_SDK_VERSION=v1.9.0
44
RUN export ARCH=$(case $(arch) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(arch) ;; esac);\
55
export OS=$(uname | awk '{print tolower($0)}');\
66
export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/$OPERATOR_SDK_VERSION/;\
7-
curl -L -o /usr/local/bin/operator-sdk ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} \
8-
&& chmod a+x /usr/local/bin/operator-sdk && \
7+
curl -L -o /usr/local/bin/operator-sdk ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} && \
8+
chmod a+x /usr/local/bin/operator-sdk && \
9+
curl -fL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/2.2.1/yq_linux_amd64 && \
10+
chmod a+x /usr/local/bin/yq && \
911
mkdir /project/output && \
10-
dnf install --setopt=install_weak_deps=False -y git-core ansible python3-pip mlocate && \
12+
dnf install --setopt=install_weak_deps=False -y git-core ansible python3-pip mlocate jq && \
1113
dnf clean all && \
1214
pip3 install operator-courier
1315
ADD ./run_tests.py /run_tests.py
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: backups.velero.io
5+
labels:
6+
component: velero
7+
spec:
8+
group: velero.io
9+
version: v1
10+
scope: Namespaced
11+
names:
12+
plural: backups
13+
kind: Backup
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: backupstoragelocations.velero.io
5+
labels:
6+
component: velero
7+
spec:
8+
group: velero.io
9+
version: v1
10+
scope: Namespaced
11+
names:
12+
plural: backupstoragelocations
13+
kind: BackupStorageLocation
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: deletebackuprequests.velero.io
5+
labels:
6+
component: velero
7+
spec:
8+
group: velero.io
9+
version: v1
10+
scope: Namespaced
11+
names:
12+
plural: deletebackuprequests
13+
kind: DeleteBackupRequest
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: downloadrequests.velero.io
5+
labels:
6+
component: velero
7+
spec:
8+
group: velero.io
9+
version: v1
10+
scope: Namespaced
11+
names:
12+
plural: downloadrequests
13+
kind: DownloadRequest

0 commit comments

Comments
 (0)