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

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

Merged

Conversation

kaovilai
Copy link
Member

@kaovilai kaovilai commented Jul 11, 2022

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 kaovilai force-pushed the upstream-master-registry-secret-fetch branch 2 times, most recently from dd3084a to c3f4d94 Compare July 11, 2022 16:02
@kaovilai kaovilai changed the title fetch secret, debug print envs obfuscated secret fetch and decode secret Jul 11, 2022
@kaovilai kaovilai changed the title fetch and decode secret Fetch and decode secret for registry plugin environment Jul 11, 2022
Copy link
Member

@dymurray dymurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look sane to me

velero-plugins/imagestream/shared.go Outdated Show resolved Hide resolved
@kaovilai kaovilai force-pushed the upstream-master-registry-secret-fetch branch from c3f4d94 to 14f229e Compare July 11, 2022 16:18
@kaovilai
Copy link
Member Author

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

@kaovilai kaovilai merged commit b796a3d into openshift:master Jul 11, 2022
@kaovilai kaovilai changed the title Fetch and decode secret for registry plugin environment OADP-205 Fetch and decode secret for registry plugin environment Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants