From ab9bc2187795b61a41dfa825ddf173ff92d531d1 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 25 Jun 2018 13:27:57 -0400 Subject: Add namespaces and initial constraints to database Add basic awareness of namespaces to the database. As part of this, add constraints so containers can only be added to pods in the same namespace. Signed-off-by: Matthew Heon --- libpod/errors.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/errors.go') diff --git a/libpod/errors.go b/libpod/errors.go index ddd586e29..75b4928da 100644 --- a/libpod/errors.go +++ b/libpod/errors.go @@ -63,6 +63,10 @@ var ( // was created by a libpod with a different config ErrDBBadConfig = errors.New("database configuration mismatch") + // ErrNSMismatch indicates that the requested pod or container is in a + // different namespace and cannot be accessed or modified. + ErrNSMismatch = errors.New("target is in a different namespace") + // ErrNotImplemented indicates that the requested functionality is not // yet present ErrNotImplemented = errors.New("not yet implemented") -- cgit v1.2.3-54-g00ecf