Skip to content

Commit

Permalink
Merge pull request #356 from red-hat-storage/sync_ds--main
Browse files Browse the repository at this point in the history
Syncing latest changes from main for ramen
  • Loading branch information
ShyamsundarR committed Sep 18, 2024
2 parents 1bfbcd9 + 5f4c694 commit dc262fd
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
14 changes: 2 additions & 12 deletions docs/devel-quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,14 @@ SPDX-License-Identifier: Apache-2.0
git remote add upstream https://github.com/RamenDR/ramen.git
```

1. Set up a commit-msg hook to sign off your commits
1. Add the commit-msg hook to sign off your commits

*Ramen* requires a `Signed-off-by: My Name <[email protected]>`
footer in the commit message. To add it automatically to all commits,
add this hook:

```sh
$ cat .git/hooks/commit-msg
#!/bin/sh
# Add Signed-off-by trailer.
sob=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
git interpret-trailers --in-place --trailer "$sob" "$1"
```

And make the hook executable:

```sh
chmod +x .git/hooks/commit-msg
cp hack/commit-msg .git/hooks/
```

## Setting up the environment for development and testing
Expand Down
3 changes: 2 additions & 1 deletion docs/krp.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ The VRG enables Kubernetes resources to be captured(backed up) and recovered as
part of disaster protection. This is accomplished through the
kubeObjectProtection section of the VRG spec. If kubeObjectProtection is not
included in a VRG, then Kubernetes resources are not protected as part of the
VRG disaster protection.
VRG disaster protection. PVCs and PVs are protected by Ramen and all resources
are protected and backed by kubeObjectProtection.
The kubeObjectProtection section contains two sub-sections, captureOrder and
recoverOrder. This captureOrder section provides instructions on how to backup
Expand Down
4 changes: 4 additions & 0 deletions hack/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# Add Signed-off-by trailer.
sob=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
git interpret-trailers --in-place --trailer "$sob" "$1"
2 changes: 1 addition & 1 deletion hack/install-setup-envtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

script_dir="$(cd "$(dirname "$0")" && pwd)"

required_version="release-0.17"
required_version="release-0.19"
source_url="sigs.k8s.io/controller-runtime/tools/setup-envtest@${required_version}"
target_dir="${script_dir}/../testbin"
target_path="${target_dir}/setup-envtest"
Expand Down
3 changes: 2 additions & 1 deletion internal/controller/kubeobjects/velero/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ func getBackupSpecFromObjectsSpec(objectsSpec kubeobjects.Spec) velero.BackupSpe
IncludedResources: objectsSpec.IncludedResources,
// exclude VRs from Backup so VRG can create them: see https://github.com/RamenDR/ramen/issues/884
ExcludedResources: append(objectsSpec.ExcludedResources, "volumereplications.replication.storage.openshift.io",
"replicationsources.volsync.backube", "replicationdestinations.volsync.backube"),
"replicationsources.volsync.backube", "replicationdestinations.volsync.backube",
"PersistentVolumeClaims", "PersistentVolumes"),
LabelSelector: objectsSpec.LabelSelector,
OrLabelSelectors: objectsSpec.OrLabelSelectors,
TTL: metav1.Duration{}, // TODO: set default here
Expand Down
8 changes: 7 additions & 1 deletion test/addons/argocd/test
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ def undeploy_guestbook(hub, cluster):
print(line)

print(f"Deleting namespace argocd-test in cluster {cluster}")
kubectl.delete("namespace", "argocd-test", "--wait=false", context=cluster)
kubectl.delete(
"namespace",
"argocd-test",
"--wait=false",
"--ignore-not-found",
context=cluster,
)


def wait_until_guestbook_is_deleted(hub, cluster):
Expand Down
1 change: 1 addition & 0 deletions test/addons/rook-pool/storage-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ parameters:
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
csi.storage.k8s.io/fstype: ext4
reclaimPolicy: Delete
allowVolumeExpansion: true

0 comments on commit dc262fd

Please sign in to comment.