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

Add update agent example application #8

Merged

Conversation

gabriela-yoncheva
Copy link
Contributor

@gabriela-yoncheva gabriela-yoncheva commented Jan 10, 2024

[#4] Add update agent example application

Created update agent example application similar to the containers update agent:

  • has Dockerfile similar to the vehicle-simulator application
  • uses the update agent API
  • is used for managing files in a directory, message to feature contains filenames and URLs

Created update agent example application similar to the containers update agent:

- has Dockerfile similar to the vehicle-simulator application

- uses the update agent API

- is used for managine files in a directory, message to feature contains filenames and URLs

Signed-off-by: Gabriela Yoncheva <[email protected]>
@gabriela-yoncheva gabriela-yoncheva changed the title [#4] Add update agent example application Add update agent example application Jan 10, 2024
@k-gostev k-gostev linked an issue Jan 10, 2024 that may be closed by this pull request
custom-update-agent/Dockerfile Outdated Show resolved Hide resolved
custom-update-agent/go.mod Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
@k-gostev
Copy link
Member

It appears that one of my comments is missing somewhere. So, besides what we are already discussing, this PR needs:

  1. README file with description of the functionality and an installation guide.
  2. Github workflow addition
  3. deployment.json file like this
  4. golint, go fmt, go vet, to be executed.

custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_agent_opts.go Outdated Show resolved Hide resolved
Changes added:
- all requested changes have been applied
- mount points are used both for adding needed certificates and for specifying the directory to be managed by the update agent
- deployment.json provided and tested with the -f flag used by kanto-cm
- state.props file will be created if not avaliable in managed directory
- backup functionality for rollback is now working
- readme.md provided with basic information about the update agent and instruction on how to install it (standard/containerized)

Note:
- could not push changes to validation.yaml, it still need to be updated!
Signed-off-by: Gabriela Yoncheva <[email protected]>
Copy link
Contributor

@dimitar-dimitrow dimitar-dimitrow left a comment

Choose a reason for hiding this comment

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

The custom-update-agent should be included in the validation workflow.

custom-update-agent/updateagent/update_agent_init.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/main.go Outdated Show resolved Hide resolved
custom-update-agent/README.md Outdated Show resolved Hide resolved
custom-update-agent/util/to_files.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_operation.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
custom-update-agent/updateagent/update_manager.go Outdated Show resolved Hide resolved
Signed-off-by: Kristiyan Gostev <[email protected]>
@dimitar-dimitrow dimitar-dimitrow requested review from k-gostev and removed request for k-gostev February 8, 2024 13:06
@dimitar-dimitrow dimitar-dimitrow merged commit f254b19 into eclipse-kanto:main Feb 8, 2024
4 checks passed
@dimitar-dimitrow dimitar-dimitrow deleted the custom-update-agent-example branch February 8, 2024 13:41
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.

Add update agent example application
4 participants