Skip to content

Conversation

@davivcgarcia
Copy link
Contributor

Description of the change

Provides the fix for the recent Bitnami migration of public images to Bitnami Legacy. The usage of Bitnami Secure is risky since the only tag available is latest, and the current PostgreSQL chart uses a specific version tag.

Existing or Associated Issue(s)

Temporary Fix for #271

Additional Information

bitnami/charts#35164

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

@davivcgarcia davivcgarcia requested a review from a team as a code owner September 19, 2025 22:29
@davivcgarcia davivcgarcia changed the title Davivcgarcia bitnami fix Workaround for Bitnami Registry migration Sep 19, 2025
@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@ChrisJBurns
Copy link
Contributor

ChrisJBurns commented Sep 29, 2025

@davivcgarcia Thanks for this, you'll have to bump the Helm Chart in the docs for the new version (can run pre-commit)

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Oct 7, 2025
@github-actions github-actions bot closed this Oct 13, 2025
@ChrisJBurns ChrisJBurns reopened this Oct 13, 2025
@github-actions github-actions bot removed the stale label Oct 14, 2025
@rm3l
Copy link
Contributor

rm3l commented Oct 14, 2025

@ChrisJBurns Any chance we can get this merged as a temporary workaround for #271? Maybe a maintainer could run the pre-commit hooks and push the changes..
Otherwise, it looks like the chart cannot be deployed currently (see the failing test on this other PR), as the DB image could no longer be pulled:

$ kubectl get po -w                                                                                                                                                 

NAME                                      READY   STATUS              RESTARTS   AGE                                                                                          
my-upstream-backstage-1-b79b5bd64-r9n75   0/1     ContainerCreating   0          9s                                                                                           
my-upstream-backstage-1-postgresql-0      0/1     ErrImagePull        0          9s                                                                                           
my-upstream-backstage-1-postgresql-0      0/1     ImagePullBackOff    0          20s                                                                                          
my-upstream-backstage-1-postgresql-0      0/1     ErrImagePull        0          31s                                                                                          
my-upstream-backstage-1-postgresql-0      0/1     ImagePullBackOff    0          44s                                                                                          

That being said, I was thinking that we could probably automate running the pre-commit hooks on PRs, and push any resulting changes to the corresponding PR branch. Thoughts? I can file an issue and look into that later..

@davivcgarcia
Copy link
Contributor Author

I really wanted to do it, but I didn't have time yet to understand how to execute these pre-commit hooks. Any specific doc I should take a look at?

@rm3l
Copy link
Contributor

rm3l commented Oct 14, 2025

I really wanted to do it, but I didn't have time yet to understand how to execute these pre-commit hooks. Any specific doc I should take a look at?

@davivcgarcia No problem. I think you can refer to this line in the Contributing guide: https://github.com/backstage/charts/blob/main/CONTRIBUTING.md?plain=1#L7
After installing pre-commit, you could run pre-commit run --all-files from the root of the repository and commit all the resulting changes. Hope that helps.

@ChrisJBurns
Copy link
Contributor

That being said, I was thinking that we could probably automate running the pre-commit hooks on PRs, and push any resulting changes to the corresponding PR branch. Thoughts? I can file an issue and look into that later..

That'd be great if you can do it, saves a bunch of manual changes.

@ChrisJBurns
Copy link
Contributor

Have approved just to kick the pipeline off, you'll need to bump all of the pre-commit stuff manually I think. Also, I think we should probably release this as a breaking change, even though it may not be? This should give users more of a nudge to really double check if the new image works for them. It is a bit extreme, but better to be safe than sorry I guess

@rm3l
Copy link
Contributor

rm3l commented Oct 15, 2025

Also, I think we should probably release this as a breaking change, even though it may not be? This should give users more of a nudge to really double check if the new image works for them. It is a bit extreme, but better to be safe than sorry I guess

The bitnamilegacy/postgresql images are depicted as a backup of all existing Bitnami container images, and are explicitly called out as usable for temporary migration purposes. So I'd assume that it would be a drop-in (but temporary) replacement, so backward-compatible, no?
I guess the actual breaking change would come if we decide to swap to a completely different PostgreSQL image (even with the same Postgres version), as one of the possible approaches from #271 (comment)

you'll need to bump all of the pre-commit stuff manually I think.

@davivcgarcia Did you get a chance to look into this? Let us know if you faced any issues running the pre-commit hook.. FYI, you can also see the Git diff that you need to apply from the Lint job run: https://github.com/backstage/charts/actions/runs/18469298466/job/52841520108?pr=284#step:6:135

diff --git a/charts/backstage/README.md b/charts/backstage/README.md
index ed80a5d..91bbf0d 100644
--- a/charts/backstage/README.md
+++ b/charts/backstage/README.md
@@ -2,7 +2,7 @@
 # Backstage Helm Chart
 
 [![Artifact Hub]([https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage)](https://artifacthub.io/packages/search?repo=backstage](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage](https://artifacthub.io/packages/search?repo=backstage)))
-![Version: 2.6.1](https://img.shields.io/badge/Version-2.6.1-informational?style=flat-square)
+![Version: 2.6.2](https://img.shields.io/badge/Version-2.6.2-informational?style=flat-square)
 ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
 
 A Helm chart for deploying a Backstage application
@@ -201,6 +201,7 @@ Kubernetes: `>= 1.19.0-0`
 | postgresql.auth.secretKeys.userPasswordKey | The key in which Postgres will look for, for the user password, in the existing Secret | string | `"user-password"` |
 | postgresql.auth.username | Name for a custom user to create | string | `"bn_backstage"` |
 | postgresql.enabled | Switch to enable or disable the PostgreSQL helm chart | bool | `false` |
+| postgresql.image | Change default PostgreSQL image location (workaround for [https://github.com/bitnami/charts/issues/35164)](https://github.com/bitnami/charts/issues/35164)?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen) | object | `{"registry":"docker.io","repository":"bitnamilegacy/postgresql"}` |
 | service | Service parameters | object | See below |
 | service.annotations | Additional custom annotations for Backstage service | object | `{}` |
 | service.clusterIP | Backstage service Cluster IP  <br /> E.g `clusterIP: None` | string | `""` |

@davivcgarcia
Copy link
Contributor Author

davivcgarcia commented Oct 16, 2025

you'll need to bump all of the pre-commit stuff manually I think.

@rm3l I've synced my branch with the latest on main, and committed the changes generated by pre-commit command. Please let me know if that makes sense. Thanks for the patience. :-)

Copy link
Contributor

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

you'll need to bump all of the pre-commit stuff manually I think.

@rm3l I've synced my branch with the latest on main, and committed the changes generated by pre-commit command. Please let me know if that makes sense. Thanks for the patience. :-)

Thanks. It looks good to me, unless @ChrisJBurns wants to bump the chart version to a major one to be safe.
Now up to @ChrisJBurns (or any other maintainer) to manually approve the CI workflows so GH can trigger them, I guess.

@github-actions
Copy link

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Oct 24, 2025
@rm3l
Copy link
Contributor

rm3l commented Oct 24, 2025

not stale

@ChrisJBurns
Copy link
Contributor

Apologies for delay on this!

@github-actions github-actions bot removed the stale label Oct 25, 2025
Copy link
Contributor

@ChrisJBurns ChrisJBurns left a comment

Choose a reason for hiding this comment

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

I think the fix bump is ok, primarily because its the same image as before just a different location. I think if we ever move away to a different image/postgres subchart that's when we'll major bump

@ChrisJBurns ChrisJBurns merged commit c000549 into backstage:main Oct 26, 2025
4 checks passed
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.

4 participants