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

fix(github): Support redis/argocd-extension-installer to Renovate #3106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yu-croco
Copy link
Collaborator

@yu-croco yu-croco commented Jan 5, 2025

In order to pass #3104 , I modified scripts.
Related to #3072

Checklist:

  • I have bumped the chart version according to versioning
  • I have updated the documentation according to documentation
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My build is green (troubleshooting builds).

@@ -97,6 +97,13 @@
"commands": ["./scripts/renovate-bump-version.sh {{depName}}"]
}
},
{
"matchPackagePatterns": ["argoprojlabs/argocd-extension-installer"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ref: #3072 (comment)

           "prTitle": "chore(deps): update quay.io/argoprojlabs/argocd-extension-installer docker tag to v0.0.8",
           "upgrades": [
             {
               "datasource": "docker",
               "depName": "quay.io/argoprojlabs/argocd-extension-installer",
               "displayPending": "",
               "fixedVersion": "v0.0.5",
               "currentVersion": "v0.0.5",
               "currentValue": "v0.0.5",
               "newValue": "v0.0.8",
               "newVersion": "v0.0.8",
               "packageFile": "charts/argo-cd/values.yaml",
               "updateType": "patch",
               "packageName": "quay.io/argoprojlabs/argocd-extension-installer"
             }
           ]

@yu-croco yu-croco marked this pull request as ready for review January 5, 2025 08:53
@yu-croco yu-croco requested a review from tico24 January 5, 2025 08:54
@mkilchhofer
Copy link
Member

Xref:

Signed-off-by: yu-croco <[email protected]>
renovate.json Outdated
@@ -99,7 +99,7 @@
},
{
"matchPackagePatterns": ["argoprojlabs/argocd-extension-installer"],
"commitMessagePrefix": "chore({{{replace 'argoprojlabs/' '' depName}}}):",
"commitMessagePrefix": "chore({{{replace '*' 'argo-cd' depName}}}):",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hmmm ugly but it works for now, unless other argoproj (argo-workflows, agro-events, etc.) starts using the same image tags ....? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Did you go through this list here?
https://docs.renovatebot.com/templates/

I'd start with either parentDir or somerhing based on packageFile.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for your review. Oh there are many convenient ones. 😮 I will fix. 🙋

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a commit for this. 🙏
7f74bba

@@ -10,7 +10,14 @@ chartName=$(echo "$depName" | sed -e "s+^argoproj/++" -e "s+^argoproj-labs/++")
echo "Changed chart name is: $chartName"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should refactor the whole script:

  • Add more input parameters
    • Chart name (e.g. via parentDir)
    • Dependency name
    • New version of the dependency
      (as a replacement of appVersion=$(grep '^appVersion:' "${parentDir}/Chart.yaml" | awk '{print $2}'))
  • Do not hardcode the line description: Bump ${chartName} to ${appVersion}"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for your feedback. I will try to refactor. 📝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants