Skip to content

Commit 6c13da8

Browse files
authored
use a pvc, not emptydir, for registry storage (#470)
use a registry, not emptydir, for registry storage
1 parent f074f56 commit 6c13da8

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

e2e/scripts/single-node-airgap-install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ check_pod_install_order() {
116116
fi
117117
}
118118

119+
check_airgap_pvc() {
120+
if ! kubectl get pvc -n registry --no-headers=true | wc -l | grep -q 1 ; then
121+
echo "Failed to find registry pvc"
122+
kubectl get pvc -A
123+
return 1
124+
fi
125+
}
126+
119127
wait_for_installation() {
120128
ready=$(kubectl get installations --no-headers | grep -c "Installed" || true)
121129
counter=0
@@ -175,6 +183,9 @@ main() {
175183
if ! check_pod_install_order; then
176184
exit 1
177185
fi
186+
if ! check_airgap_pvc; then
187+
exit 1
188+
fi
178189
if ! systemctl status embedded-cluster; then
179190
echo "Failed to get status of embedded-cluster service"
180191
exit 1

pkg/addons/registry/registry.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ var helmValues = map[string]interface{}{
4040
"image": map[string]interface{}{
4141
"tag": ImageVersion,
4242
},
43-
"storage": "filesystem", // this is not a recognized option but gets us past all the storage options
43+
"storage": "filesystem",
44+
"persistence": map[string]interface{}{
45+
"enabled": true,
46+
"size": "10Gi",
47+
"accessMode": "ReadWriteOnce",
48+
"storageClass": "openebs-hostpath",
49+
},
4450
"configData": map[string]interface{}{
4551
"auth": map[string]interface{}{
4652
"htpasswd": map[string]interface{}{

0 commit comments

Comments
 (0)