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

Move datastore configuration handling to downloader. #176

Merged
merged 5 commits into from
Aug 8, 2019
Merged

Move datastore configuration handling to downloader. #176

merged 5 commits into from
Aug 8, 2019

Conversation

srinibas-zededa
Copy link
Contributor

  1. removed the datastore configuration handling functionality from basosmgr/zedmanager
    a. The downloadable objects will be published to downloader, without datastore config.
    b. removed the datastore configuration items from DownloaderConfig/Status structure
  2. added the datastore configuration handling into downloader.
    a. Added pubsub config handler functions for datastore config changes from zedagent
    b. For every downloadable object config change, we will check for availability of data
    store configuration.
    c. For evert datastore configuration change, pick up the objects attached to the datastore
    still in error state, for downloading.

Signed-off-by: Srinibas Maharana <srinibas@zededa.com>
Signed-off-by: Srinibas Maharana <srinibas@zededa.com>
Signed-off-by: Srinibas Maharana <srinibas@zededa.com>
@@ -544,16 +526,6 @@ func handleCreate(ctx *zedmanagerContext, key string,
}
publishAppInstanceStatus(ctx, &status)
Copy link
Contributor

Choose a reason for hiding this comment

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

Old code checked for status,Error != "' here. Why do we no longer need that check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add the check, missed during code removal. thanks.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM. One question below.

srinibas-zededa and others added 2 commits August 7, 2019 19:26
Signed-off-by: Srinibas Maharana <srinibas@zededa.com>
@eriknordmark eriknordmark merged commit 02fb3e4 into lf-edge:master Aug 8, 2019
milan-zededa pushed a commit to milan-zededa/eve that referenced this pull request Nov 7, 2023
pull the latest eve 7/20/2023
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.

2 participants