Skip to content

Commit

Permalink
Added steps to disable csvcopy to diable (#413)
Browse files Browse the repository at this point in the history
* Added steps to disable csvcopy to diable

Signed-off-by: Tarun Kumar <[email protected]>

* Add olm file

Signed-off-by: Tarun Kumar <[email protected]>

* minor changes

Signed-off-by: Tarun Kumar <[email protected]>

* Add documenatation

Signed-off-by: Tarun Kumar <[email protected]>

* openshiftlib

Signed-off-by: Tarun Kumar <[email protected]>
  • Loading branch information
tarukumar authored Jun 23, 2022
1 parent f0619ff commit 5f78fe8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/Tests/700__sandbox/701__performance_sandbox.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Library OperatingSystem
Library Collections
Library Process
Library String

Library OpenShiftLibrary
Suite Setup Performance Suite Setup

*** Variables ***
${NAMESPACE} openshift-kube-apiserver
Expand All @@ -20,7 +21,6 @@ Verify RHODS Performance For Sandbox Onboarding Process
[Tags] ODS-1404
... Sandbox
... Performance-Test
Run git clone https://github.com/codeready-toolchain/toolchain-e2e.git
Run Keyword And Continue On Failure Run Performance Test On RHODS Operator
Verify Sandbox Toolchain Data

Expand Down Expand Up @@ -65,8 +65,8 @@ Run Performance Test On RHODS Operator

Verify Sandbox Toolchain Data
[Documentation] Compare the memory utilization of kube api server pod
${result} Run cat ${EXECDIR}/log.txt | grep "invalid\\|failed"
IF "failed" in $result or "invalid" in $result
${result} Run cat ${EXECDIR}/log.txt | grep "invalid\\|failed\\|error"
IF "failed" in $result or "invalid" in $result or "error" in $result
FAIL RHODS onboarding script is not executed successfully.Check log for more detail.
ELSE
${k_data} Run cat ${EXECDIR}/log.txt | grep -i "openshift-kube-apiserver"
Expand All @@ -79,3 +79,10 @@ Verify Sandbox Toolchain Data
... expected in toolchain result=> ${km_data[0]} : ${m_value}
END
END

Performance Suite Setup
[Documentation] Disable CopiedCSVs in OLMConfig to not watch csv created in every namespace
... since copied CSVs consume an untenable amount of resources, such as OLM’s memory usage,
... cluster etcd limits, and networking
Oc Apply kind=OLMConfig src=tests/Tests/700__sandbox/olm.yaml
Run git clone https://github.com/codeready-toolchain/toolchain-e2e.git
7 changes: 7 additions & 0 deletions tests/Tests/700__sandbox/olm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: operators.coreos.com/v1
kind: OLMConfig
metadata:
name: cluster
spec:
features:
disableCopiedCSVs: true

0 comments on commit 5f78fe8

Please sign in to comment.