mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
* chore(refactor): project and api refactoring Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(refactor): project and api refactoring Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
21 lines
466 B
Go
21 lines
466 B
Go
// Copyright 2020-2025 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package v1beta2
|
|
|
|
import (
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
"github.com/projectcapsule/capsule/pkg/api/meta"
|
|
)
|
|
|
|
// Indicate the claim is bound to a resource pool.
|
|
func (r *ResourcePoolClaim) IsBoundToResourcePool() bool {
|
|
if r.Status.Condition.Type == meta.BoundCondition &&
|
|
r.Status.Condition.Status == metav1.ConditionTrue {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|