Skip to content

Commit 0eface6

Browse files
author
sai chaithanya
authored
chore(test): disable OpenEBS analytics reports in GitHub action (#104)
Signed-off-by: mittachaitu <[email protected]>
1 parent e5b789c commit 0eface6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/install-nfs-provisioner.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
on_exit() {
18+
19+
## Changing back to original value
20+
sed -i '/OPENEBS_IO_ENABLE_ANALYTICS/!b;n;c\ value: "true"' deploy/kubectl/openebs-nfs-provisioner.yaml
21+
}
22+
23+
trap 'on_exit' EXIT
24+
1725
sed -i 's/#- name: BackendStorageClass/- name: BackendStorageClass/' deploy/kubectl/openebs-nfs-provisioner.yaml
1826
sed -i 's/# value: "openebs-hostpath"/ value: "openebs-hostpath"/' deploy/kubectl/openebs-nfs-provisioner.yaml
19-
27+
## !b negates the previous address and breaks out of any processing, end the sed commands,
28+
## n prints the current line and reads the next line into pattern space,
29+
## c changes the current line to the string following command
30+
sed -i '/OPENEBS_IO_ENABLE_ANALYTICS/!b;n;c\ value: "false"' deploy/kubectl/openebs-nfs-provisioner.yaml
2031
kubectl apply -f deploy/kubectl/openebs-nfs-provisioner.yaml
2132

2233
function waitForDeployment() {

0 commit comments

Comments
 (0)