Skip to content
Snippets Groups Projects
Commit b17f0eb0 authored by Etxaniz Errazkin, Iñaki's avatar Etxaniz Errazkin, Iñaki
Browse files

Update component_update.md

parent a724d3c3
No related branches found
No related tags found
No related merge requests found
# Component Update # Component Update
Components are updated to fix bugs, add new features, or improve performance. In this guide, we will show you how the different ways in which a component can be updated. Components are normally updated to fix bugs, add new features, or improve performance. In this guide, we will show you different ways to updated your component.
There are two ways to update a component: There are two ways to update a component:
- Automatically by RenovateBot - Automatically by RenovateBot
- Manually - Manually
Finally, there may be situations when configuration changes are require appart from the component update. This will be explained in the last section. There may be situations where, apart from the component update, some configuration changes will be required. This will be explained in the last section.
## Table of contents ## Table of contents
- [Automatically by RenovateBot](#automatically-by-renovatebot) - [Automatically by RenovateBot](#automatically-by-renovatebot)
...@@ -14,24 +14,19 @@ Finally, there may be situations when configuration changes are require appart f ...@@ -14,24 +14,19 @@ Finally, there may be situations when configuration changes are require appart f
- [Configuration changes](#configuration-changes) - [Configuration changes](#configuration-changes)
## Automatically by RenovateBot ## Automatically by RenovateBot
`RenovateBot` is a tool that helps you to keep your dependencies up to date. It will automatically create pull requests to update the dependencies of the components. It will periodically check the component versions in the docker image registry and create a pull request if a new version is available.
RenovateBot is a tool that helps you to keep your dependencies up to date. It will automatically create pull requests to update the dependencies of the components. It will periodically check the component versions in the docker image registry and create a pull request if a new version is available.
This procedure is transparent to the developers. This procedure is transparent to the developers.
## Manually ## Manually
This is required when the component does not use versioning. If you need to update a component manually, you can follow these steps: This is required when the component does not use versioning. If you need to update a component manually, you can follow these steps:
- Ensure the new version is available in the docker image registry. 1. Ensure the new version is available in the docker image registry.
- Login into the [kubernetes cluster](https://k8so.emerald.digital.tecnalia.dev). 2. Login into the [kubernetes cluster](https://k8so.emerald.digital.tecnalia.dev), and find the pod that uses the component you want to update.
- Find the pod that uses the component you want to update. 3. Delete the pod. The pod will be recreated with the new version of the component.
- Delete the pod.
- The pod will be recreated with the new version of the component.
## Configuration changes ## Configuration changes
Sometimes, when a component is updated, configuration changes are required. This is because the new version of the component may have new features or changes in the configuration. In this case, the component configuration files should be updated. Sometimes, when a component is updated, configuration changes are required. This is because the new version of the component may have new features or changes in the configuration. In this case, the component configuration files should be updated.
To do so, create an issue and an MR in the CaaS Framework repository with the changes required in the configuration files. The MR should be reviewed and merged by the CaaS Framework administrator. To do so, create an issue and a Merge Request (MR) in the [CaaS Framework repository](https://git.code.tecnalia.com/emerald/private/devops/caas-framework) with the changes required in the configuration files. The MR should be reviewed and merged by the CaaS Framework administrator.
In the case of automatic updates, it may happen that the component update fails and the MR is not merged. In this case, add the configuration changes to the MR and ask the CaaS Framework administrator to merge it. In the case of automatic updates, it may happen that the component update fails and the MR is not merged. In this case, add the configuration changes to the MR and ask the CaaS Framework administrator to merge it.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment