func (s RocksDBEncryptionSpec) IsEncrypted() bool {
	return s.GetKeySecretName() != ""
}
IsEncrypted returns true when an encryption key secret name is provided,
false otherwise.
package v2alpha1
import (
	"github.com/arangodb/kube-arangodb/pkg/util"
	"github.com/arangodb/kube-arangodb/pkg/util/errors"
	"github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
)
type RocksDBEncryptionSpec struct {
	KeySecretName *string `json:"keySecretName,omitempty"`
}
func (s RocksDBEncryptionSpec) GetKeySecretName() string {
	return util.StringOrDefault(s.KeySecretName)
}