// Validates the content of the bucket access against bucket access request and backet access class
// This is used by bucket access request unit tests
Validates the content of the bucket access against bucket access request and backet access class
This is used by bucket access request unit tests
// Validates the content of the bucket access against bucket access request and backet access class // This is used by bucket access request unit tests
func ValidateBucketAccess(bucketaccess types.BucketAccess, bucketaccessrequest types.BucketAccessRequest, bucketaccessclass types.BucketAccessClass) bool {
	if bucketaccess.Spec.BucketInstanceName != "" &&
		bucketaccess.Spec.BucketAccessRequest == bucketaccessrequest.Name &&
		bucketaccess.Spec.ServiceAccount == bucketaccessrequest.Spec.ServiceAccountName &&
		bucketaccess.Spec.PolicyActionsConfigMapData != "" &&
		bucketaccess.Spec.Provisioner == bucketaccessclass.Provisioner {
		return true
	}
	return false
}
func ValidateBucketAccess ( bucketaccess types . BucketAccess , bucketaccessrequest types . BucketAccessRequest , bucketaccessclass types . BucketAccessClass ) bool { if bucketaccess . Spec . BucketInstanceName != " " && bucketaccess . Spec . BucketAccessRequest == bucketaccessrequest . Name && bucketaccess . Spec . ServiceAccount == bucketaccessrequest . Spec . ServiceAccountName && bucketaccess . Spec . PolicyActionsConfigMapData != " " && bucketaccess . Spec . Provisioner == bucketaccessclass . Provisioner { return true } return false }
Validates the content of the bucket access against bucket access request and backet access class
This is used by bucket access request unit tests
Validates the content of the bucket access against bucket access request and backet access class This is used by bucket access request unit tests