Skip to content

Commit 4ef323e

Browse files
authored
upgrade-tester: describe how to add nnf master (#267)
Signed-off-by: Dean Roehrich <dean.roehrich@hpe.com>
1 parent 731177e commit 4ef323e

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docs/repo-guides/testing/upgrade-tester.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,41 @@ cd $REPO_NAME
7777
./test-tools/upgrade-tester.sh rel-v0.1.11 rel-v0.1.12 rel-v0.1.13-svm
7878
```
7979

80+
## Adding NNF master
81+
82+
The NNF master branch, whether from a local workarea that has local modifications or from a fresh clone with no changes, may also be used as a release for the `upgrade-tester.sh` tool.
83+
84+
Go to a local workarea containing the `nnf-deploy` repository with its submodules updated and checked out. See [nnf-deploy](https://github.com/NearNodeFlash/nnf-deploy). Then make a new manifest representing the contents of that workarea. The `make manifests` command creates a tarball named `manifests-kind.tar` in the root of that workarea.
85+
86+
```console
87+
cd /path/to/nnf-deploy
88+
# The following assumes the submodules are already updated.
89+
make manifests
90+
```
91+
92+
Change to the the workarea containing the gitops repo created earlier. Unpack the manifest from the nnf-deploy workarea onto the `main` branch.
93+
94+
```console
95+
cd /path/to/gitops-$REPO_NAME
96+
git checkout main
97+
```
98+
99+
Unpack the manifest, address any issues, and commit and push the branch.
100+
101+
```console
102+
./tools/unpack-manifest.py -e kind -m /path/to/nnf-deploy/manifests-kind.tar
103+
# Address any NOTE issues.
104+
./tools/verify-deployment.sh -e kind
105+
# Address any additional issues.
106+
git add environments
107+
git commit -m 'nnf master'
108+
git push
109+
```
110+
111+
This `nnf-master` branch can be updated repeatedly with additional builds of the NNF master manifest.
112+
113+
The `main` branch may now be listed as one of the releases for the `upgrade-tester.sh` tool to use.
114+
80115
## References
81116

82117
[NNF Releases](https://github.com/NearNodeFlash/nnf-deploy/releases)

0 commit comments

Comments
 (0)