-
Notifications
You must be signed in to change notification settings - Fork 59
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
vdk-properties-fs: new plugin for local FS properties storage #1190
Conversation
We need a simplistic plugin, that allows a developer or presenter to quickly store secrets on the local FS during a dev/demo session, that does not require a prerequisite of the entire Control Service installed and running. Added a FS properties client, that uses a customizable dir and filename on the local file system to store the properties key-values. It does support multiple teams and data jobs, the properties of those are placed within a dedicated section for keys deduplication. Testing Done: added `test_fs_properties_plugin.py`, that covers multiple data jobs using matching keys, and default/customized directory and filename for file storage on the local FS. Signed-off-by: ivakoleva <[email protected]>
Useful for workaround in cases of #1187 for example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one small comment about the properties client.
projects/vdk-plugins/vdk-properties-fs/src/vdk/plugin/properties_fs/fs_properties_client.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-properties-fs/src/vdk/plugin/properties_fs/fs_properties_client.py
Outdated
Show resolved
Hide resolved
projects/vdk-plugins/vdk-properties-fs/src/vdk/plugin/properties_fs/fs_properties_client.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Gabriel Georgiev <[email protected]>
We need a simplistic plugin, that allows a developer or presenter to quickly store secrets on the local FS during a dev/demo session, that does not require a prerequisite of the entire Control Service installed and running. Added a FS properties client, that uses a customizable dir and filename on the local file system to store the properties key-values. It does support multiple teams and data jobs, the properties of those are nested under a dedicated key for deduplication. JSON format is used, enabling nested data structures. Testing Done: added `test_fs_properties_plugin.py`, that covers multiple data jobs using matching keys, and default/customized directory and filename for file storage on the local FS. Signed-off-by: ivakoleva <[email protected]>
…' into person/ikoleva/vdk-properties-fs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Some small comments/suggestions
projects/vdk-plugins/vdk-properties-fs/src/vdk/plugin/properties_fs/fs_properties_client.py
Show resolved
Hide resolved
projects/vdk-plugins/vdk-properties-fs/tests/test_fs_properties_plugin.py
Show resolved
Hide resolved
* vdk-properties-fs: new plugin for local FS properties storage We need a simplistic plugin, that allows a developer or presenter to quickly store secrets on the local FS during a dev/demo session, that does not require a prerequisite of the entire Control Service installed and running. Added a FS properties client, that uses a customizable dir and filename on the local file system to store the properties key-values. It does support multiple teams and data jobs, the properties of those are nested under a dedicated key for deduplication. JSON format is used, enabling nested data structures. Testing Done: added `test_fs_properties_plugin.py`, that covers multiple data jobs using matching keys, and default/customized directory and filename for file storage on the local FS. Signed-off-by: ivakoleva <[email protected]> Signed-off-by: ivakoleva <[email protected]> Co-authored-by: Gabriel Georgiev <[email protected]>
We need a simplistic plugin, that allows a developer or presenter to quickly store secrets on the local FS during a dev/demo session, that does not require a prerequisite of the entire Control Service installed and running.
Added a FS properties client, that uses a customizable dir and filename on the local file system to store the properties key-values. It does support multiple teams and data jobs, the properties of those are placed within a dedicated section for keys deduplication.
Testing Done: added
test_fs_properties_plugin.py
, that covers multiple data jobs using matching keys, and default/customized directory and filename for file storage on the local FS.Signed-off-by: ivakoleva [email protected]