openshift / openshift-velero-plugin

General Velero plugin for backup and restore of openshift workloads.
Apache License 2.0
47 stars 37 forks source link

OADP-205 Fetch and decode secret for registry plugin environment #154

Closed kaovilai closed 2 years ago

kaovilai commented 2 years ago

This PR fetches secret and decode them for use in Registry "environment variables" parameters for initializing plugin registry.

Previous to this, registry environment variables returned from provider functions were wrongly assumed to be set in envVar.Value exclusively. This PR add support for envVar.ValueFrom.SecretKeyRef. OADP-205

kaovilai commented 2 years ago

local build succeeded skipping PR travis. Will wait for master travis.