Skip to content

Commit ff11a2a

Browse files
committed
init pvc
1 parent 13cbcf9 commit ff11a2a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

xset/api/xset_controller_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121

2222
appsv1 "k8s.io/api/apps/v1"
23+
corev1 "k8s.io/api/core/v1"
2324
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2425
"sigs.k8s.io/controller-runtime/pkg/client"
2526
)
@@ -59,6 +60,11 @@ type XOperation interface {
5960
GetXOpsPriority(ctx context.Context, c client.Client, object client.Object) (*OpsPriority, error)
6061
}
6162

63+
type SubResourcePvcAdapter interface {
64+
XSetPvcTemplate(object XSetObject) []corev1.PersistentVolumeClaim
65+
XMountedPvcs(object client.Object)
66+
}
67+
6268
// LifecycleAdapterGetter is used to get lifecycle adapters.
6369
type LifecycleAdapterGetter interface {
6470
GetScaleInOpsLifecycleAdapter() LifecycleAdapter

0 commit comments

Comments
 (0)