Skip to content

Commit

Permalink
Delete the legacy test environment
Browse files Browse the repository at this point in the history
The old scripts are not maintained for a while and were replaced by
drenv and e2e. If someone want to use the scripts they can check out an
older version.

Fixes: #1657
Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs authored and ShyamsundarR committed Nov 20, 2024
1 parent 84deff3 commit 59549db
Show file tree
Hide file tree
Showing 58 changed files with 2 additions and 5,364 deletions.
79 changes: 2 additions & 77 deletions hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,81 +3,6 @@ SPDX-FileCopyrightText: The RamenDR authors
SPDX-License-Identifier: Apache-2.0
-->

# hack/
# Hacking ramen

## minikube-ramen.sh

Ramen dr-cluster end-to-end test script

- cluster names are specified with the `cluster_names` variable
- `cluster1` and `cluster2` by default
- application sample namespace name is specified with the `application_sample_namespace_name`
variable
- `default` by default
- takes a list of functions to execute:
- `deploy` (default) deploys the environment including:
minikube clusters, rook-ceph, minio s3 stores, ramen
- `undeploy` undeploys the things deployed by `deploy`
- `manager_redeploy` rebuilds and redeploys ramen manager
- `application_sample_deploy` deploys busybox-sample app to specified cluster
- `application_sample_undeploy` undeploys busybox-sample app from specified cluster
- `application_sample_vrg_deploy` deploys busybox-sample app vrg to 1st cluster
- `application_sample_vrg_undeploy` undeploys busybox-sample app vrg from 1st
cluster

## ocm-minikube-ramen.sh

open-cluster-management Ramen end-to-end test script

- can be run from any directory; writes temporary files to /tmp
- installs some dependencies (e.g. minikube, golang, etc), but not necessarily
all (e.g. kvm on Linux distributions other than RHEL and Ubuntu)
- hub cluster name is specified with the `hub_cluster_name` variable
- defaults to `hub`
- managed cluster names are specified with the `spoke_cluster_names` variable
- `cluster1` and `hub` by default
- a hub may also be a managed cluster
- takes a list of functions to execute:
- `deploy` (default) deploys the environment including:
minikube clusters, ocm, rook-ceph, minio s3 stores, olm, ramen
- calls `ramen_images_build_and_archive` which builds and deploys ramen
from the source rooted from the parent directory of the script
- skips the ramen manager image build if the `skip_ramen_build` variable's
value is something other than an empty string or `false`
- calls `ramen_deploy` which deploys ramen hub operator, crds, drpolicy
and samples channel
- `application_sample_deploy` deploys the busybox-sample app to 1st managed cluster
named
- `application_sample_failover` fails over the busybox-sample app to 2nd managed
cluster named
- `application_sample_relocate` relocates the busybox-sample app to 1st managed
cluster named
- `application_sample_undeploy` undeploys the busybox-sample app from the cluster
it was last deployed to
- `undeploy` undeploys the things deployed by `deploy`
- calls `ramen_undeploy` which undeploys the things deployed by `ramen_deploy`
- calls `rook_ceph_undeploy` which deletes the minikube clusters and rook-ceph
virsh volumes and alone can undeploy the environment quickly by skipping
component undeployments
- see source for several other routines to deploy and undeploy various copmonents
individually
- is designed to be idempotent so that deploy functions can be rerun without having
to first undeploy
- one exception to this is image deployment
- for example, if ramen image changes, it can be deployed by undeploying
and redeploying ramen
- tip: if an error is encountered leaving something in a state such that an undeployment
fails, consider redeploying to get it into a known state

Examples:

```sh
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh application_sample_deploy
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh application_sample_failover
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh application_sample_relocate
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh application_sample_undeploy
./ocm-minikube-ramen.sh ramen_build_and_archive
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh ramen_undeploy
spoke_cluster_names=cluster1\ cluster2 ./ocm-minikube-ramen.sh ramen_deploy
```
This directory includes various tools for ramen developers.
22 changes: 0 additions & 22 deletions hack/cert-manager.sh

This file was deleted.

10 changes: 0 additions & 10 deletions hack/curl-install.sh

This file was deleted.

62 changes: 0 additions & 62 deletions hack/dev-rook-cluster.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions hack/dev-rook-rbdpool.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions hack/dev-rook-sc.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions hack/docker-client-install.sh

This file was deleted.

25 changes: 0 additions & 25 deletions hack/docker-install.sh

This file was deleted.

27 changes: 0 additions & 27 deletions hack/docker-uninstall.sh

This file was deleted.

27 changes: 0 additions & 27 deletions hack/exit_stack.sh

This file was deleted.

34 changes: 0 additions & 34 deletions hack/fuse-overlayfs-install.sh

This file was deleted.

Loading

0 comments on commit 59549db

Please sign in to comment.