X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=depRicKubernetesOperator%2Finternal%2Fcontroller%2FgetPersistentVolume.go;fp=depRicKubernetesOperator%2Finternal%2Fcontroller%2FgetPersistentVolume.go;h=ea3955218d7728476e3f4697ff05bb020b23ede8;hb=4bbb21149e88a52250390706de44600a4684022b;hp=8fbb0434e9b5703d22b27fcb2fa56983e62e0e7a;hpb=f341c3cb455179e14a36f01c1f6581a29b8e25ee;p=ric-plt%2Fric-dep.git diff --git a/depRicKubernetesOperator/internal/controller/getPersistentVolume.go b/depRicKubernetesOperator/internal/controller/getPersistentVolume.go index 8fbb043..ea39552 100644 --- a/depRicKubernetesOperator/internal/controller/getPersistentVolume.go +++ b/depRicKubernetesOperator/internal/controller/getPersistentVolume.go @@ -30,5 +30,30 @@ func GetPersistentVolume() []*unstructured.Unstructured { }, } - return []*unstructured.Unstructured{persistentVolume1} + persistentVolume2 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "PersistentVolume", + "metadata": map[string]interface{}{ + "name": "pv-ricplt-e2term-alpha", + "labels": map[string]interface{}{ + "type": "local", + }, + }, + "spec": map[string]interface{}{ + "accessModes": []interface{}{ + "ReadWriteOnce", + }, + "capacity": map[string]interface{}{ + "storage": "100Mi", + }, + "hostPath": map[string]interface{}{ + "path": "/mnt/pv-ricplt-e2term-alpha", + }, + "storageClassName": "local-storage", + }, + }, + } + + return []*unstructured.Unstructured{persistentVolume1, persistentVolume2} }