velero/pkg/cmd
Nolan Brubaker 363c2692a1 Use custom namespace when creating Velero clients
The Velero deployment did not have a way of exposing the namespace it
was installed in to the API client. This is a problem for plugins that
need to query for resources in that namespaces, such as the restic
restore process that needs to find PodVolume(Backup|Restore)s.

While the Velero client is consulted for a configured namespace, this
cannot be set in the server pod since there is no valid home directory
in which to place it.

This change provides the namespace to the deployment via the downward
API, and updates the API client factory to use the VELERO_NAMESPACE
before looking at the config file, so that any plugins using the client
will look at the appropriate namespace.

Fixes #1743

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
2019-08-13 13:06:12 -04:00
..
cli Use custom namespace when creating Velero clients 2019-08-13 13:06:12 -04:00
server Use custom namespace when creating Velero clients 2019-08-13 13:06:12 -04:00
util sort GVKs in output 2019-08-08 15:13:35 -07:00
velero Use custom namespace when creating Velero clients 2019-08-13 13:06:12 -04:00
errors.go logs commands: validate backup/restore exists & is finished processing 2019-04-01 12:39:02 -06:00