Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPS-1268 Validate backup/restore namespace exists #244

Merged
merged 13 commits into from
Nov 4, 2024
Prev Previous commit
Next Next commit
add comments
korotkov-aerospike committed Oct 27, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
commit 5d80db55d793770b4507afb2f56e232975500d90
4 changes: 4 additions & 0 deletions pkg/service/aerospike_service.go
Original file line number Diff line number Diff line change
@@ -19,7 +19,11 @@ import (
const namespaceInfo = "namespaces"

type NamespaceValidator interface {
// MissingNamespaces returns a slice containing any namespaces specified in the
// provided slice which do not exist on the given cluster.
MissingNamespaces(cluster *model.AerospikeCluster, namespaces []string) []string
// ValidateRoutines verifies that all namespaces referenced in backup routines
// exist in their respective clusters.
ValidateRoutines(cluster *model.AerospikeCluster, config *model.Config) error
}