velero/pkg/install
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
..
crd.go Add velero install command (#1287) 2019-04-15 14:10:11 -07:00
daemonset.go Make secret file optional on install (#1699) 2019-08-01 15:57:36 -07:00
daemonset_test.go Make secret file optional on install (#1699) 2019-08-01 15:57:36 -07:00
deployment.go Use custom namespace when creating Velero clients 2019-08-13 13:06:12 -04:00
deployment_test.go Use custom namespace when creating Velero clients 2019-08-13 13:06:12 -04:00
doc.go Add location resources and tests (#1277) 2019-03-13 11:23:00 -06:00
install.go Remove references to apps/v1beta1 API group (#1673) 2019-07-17 15:03:48 -06:00
resources.go Make secret file optional on install (#1699) 2019-08-01 15:57:36 -07:00
resources_test.go Add location resources and tests (#1277) 2019-03-13 11:23:00 -06:00