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

Feature Proposal: Automatically update helm chart dependencies #16

Closed
koeberlue opened this issue Jan 22, 2022 · 6 comments
Closed

Feature Proposal: Automatically update helm chart dependencies #16

koeberlue opened this issue Jan 22, 2022 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@koeberlue
Copy link

koeberlue commented Jan 22, 2022

Manually keeping all dependencies up to date can be a time consuming task which can easily be automated.

One possible solution for this is renovatebot which periodically checks for new versions and can create a pull request for each update found.

It can easily be deployed on kubernetes via helm and works with gitea out of the box.

@khuedoan khuedoan added good first issue Good for newcomers enhancement New feature or request labels Jan 22, 2022
@khuedoan khuedoan pinned this issue Jan 27, 2022
@khuedoan
Copy link
Owner

Running Renovate manually and it's working, now I need to put it in a Job or Pipeline

d6a8495

image

@koeberlue
Copy link
Author

Nice!

now I need to put it in a Job or Pipeline

You could use the official helm chart for this:
https://github.com/renovatebot/helm-charts

It will deploy a kubernetes CronJob which just executes the bot at configurable intervals.

@khuedoan
Copy link
Owner

I tried that before but I reverted it, feels a bit weird. Anyway I'll play with it again to see which one is better.

@khuedoan
Copy link
Owner

This will need #20 #21 in the long term, but right now I'll just create the token and secret using the existing Python script.

@khuedoan
Copy link
Owner

The Helm chart is working (a long debug session led me to this fix 983c8de), however the following steps will need to be automated:

  • Register an account for the bot with user name, full name, email address
  • Create access token
  • Put the access token to a Secret (right now I just hard code a test token)
  • Add the bot to the repository (or all repository)

@khuedoan
Copy link
Owner

khuedoan commented Mar 24, 2022

Unfortunately, there is no way to generate a Gitea token with a specific value, so we must generate a token by hand and store it in Vault:

key: /gitea/renovate
property: token

image

It can be automated by generating the token from Gitea side, get the output and put it in to Vault, I've got it to work but it's kind of a mess.

@khuedoan khuedoan unpinned this issue Mar 27, 2022
zanehala added a commit to zanehala/homelab that referenced this issue Nov 30, 2022
zanehala added a commit to zanehala/homelab that referenced this issue Feb 11, 2023
retX0 pushed a commit to retX0/homelab that referenced this issue Jan 10, 2024
east4ming pushed a commit to east4ming/homelab2 that referenced this issue Dec 8, 2024
Shynd pushed a commit to Shynd/homelab that referenced this issue Jan 14, 2025
…red docker tag to v2025' (khuedoan#16) from renovate/docker.io-cloudflare-cloudflared-2025.x into master

Reviewed-on: https://git.havki.no/ops/homelab/pulls/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants