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 updatecli configuration to update vsphere cpi and csi charts #5326

Merged

Conversation

galal-hussein
Copy link
Contributor

@galal-hussein galal-hussein commented Jan 27, 2024

Proposed Changes

Add updatecli steps to update vsphere-csi/vsphere-cpi charts and images

Types of Changes

Verification

Testing

Linked Issues

User-Facing Change


Further Comments

@galal-hussein
Copy link
Contributor Author

Results from dry-run:

vsphere-csi

updateVsphereCSI
----------------

**Dry Run enabled**

DEBUG: No shell success criteria defined, updatecli fallbacks to historical workflow
DEBUG: 	command: /bin/sh /tmp/updatecli/bin/46f03f763edddbdbcd1305389ff3dff76c38536f05de988ea75d6d40e062eb38.sh
DEBUG: Environment variables
DEBUG: 	* UPDATECLI_PIPELINE_STAGE=target
DEBUG: 	* DRY_RUN=true
The shell 🐚 command "/bin/sh /tmp/updatecli/bin/46f03f763edddbdbcd1305389ff3dff76c38536f05de988ea75d6d40e062eb38.sh" ran successfully with the following output:
----
[INFO]  updating chart rancher-vsphere-csi in charts/chart_versions.yaml
[INFO]  found version 3.0.1-rancher100, updating to 3.0.1-rancher101
[INFO]  dry-run is enabled, no changes will occur
[INFO]  downloading chart rancher-vsphere-csi version 3.0.1-rancher101 to extract image versions
[INFO]  image rancher/mirrored-cloud-provider-vsphere-csi-release-driver did not update from version v3.0.1
[INFO]  image rancher/mirrored-sig-storage-csi-attacher did not update from version v4.2.0
[INFO]  image rancher/mirrored-sig-storage-csi-resizer did not update from version v1.7.0
[INFO]  image rancher/mirrored-sig-storage-livenessprobe did not update from version v2.9.0
[INFO]  image rancher/mirrored-cloud-provider-vsphere-csi-release-syncer did not update from version v3.0.1
[INFO]  image rancher/mirrored-sig-storage-csi-provisioner did not update from version v3.4.0
[INFO]  image rancher/mirrored-cloud-provider-vsphere-csi-release-driver did not update from version v3.0.1
[INFO]  image rancher/mirrored-sig-storage-csi-node-driver-registrar did not update from version v2.7.0
[INFO]  image rancher/mirrored-sig-storage-livenessprobe did not update from version v2.9.0

vsphere-cpi

updateVsphereCPI
----------------

**Dry Run enabled**

DEBUG: No shell success criteria defined, updatecli fallbacks to historical workflow
DEBUG: 	command: /bin/sh /tmp/updatecli/bin/753f7f4d6fff17342ab0ce73f08ccda52fa9baa1245ed7c50a5b88bf240ac038.sh
DEBUG: Environment variables
DEBUG: 	* UPDATECLI_PIPELINE_STAGE=target
DEBUG: 	* DRY_RUN=true
The shell 🐚 command "/bin/sh /tmp/updatecli/bin/753f7f4d6fff17342ab0ce73f08ccda52fa9baa1245ed7c50a5b88bf240ac038.sh" ran successfully with the following output:
----
[INFO]  updating chart rancher-vsphere-cpi in charts/chart_versions.yaml
[INFO]  found version 1.4.100, updating to 1.5.100
[INFO]  dry-run is enabled, no changes will occur
[INFO]  downloading chart rancher-vsphere-cpi version 1.5.100 to extract image versions
[INFO]  image rancher/mirrored-cloud-provider-vsphere-cpi-release-manager did not update from version v1.26.1

@galal-hussein galal-hussein marked this pull request as ready for review January 31, 2024 20:22
@galal-hussein galal-hussein requested a review from a team as a code owner January 31, 2024 20:22
updatecli/updatecli.d/updatecli.yml Outdated Show resolved Hide resolved
updatecli/updatecli.d/updatecli.yml Outdated Show resolved Hide resolved
updatecli/updatecli.d/updatecli.yml Outdated Show resolved Hide resolved
updatecli/updatecli.d/updatecli.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@manuelbuil manuelbuil left a comment

Choose a reason for hiding this comment

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

If this gets merged and works well, we could largely reuse it for other charts as well 🥳

user: "{{ .github.user }}"
email: "{{ .github.email }}"
username: "{{ requiredEnv .github.username }}"
token: '{{ requiredEnv .github.token }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work for you? I had problems when using the token from values.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it works locally with updatecli and I used act as well to test the workflow, it seems to be working fine

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
@galal-hussein galal-hussein force-pushed the automatic_update_for_vsphere_charts branch from b399130 to efc488a Compare July 15, 2024 22:26
@codecov-commenter
Copy link

codecov-commenter commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.23%. Comparing base (5073efd) to head (efc488a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5326   +/-   ##
=======================================
  Coverage   25.23%   25.23%           
=======================================
  Files          33       33           
  Lines        2829     2829           
=======================================
  Hits          714      714           
  Misses       2068     2068           
  Partials       47       47           
Flag Coverage Δ
inttests 9.65% <ø> (ø)
unittests 17.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@galal-hussein galal-hussein merged commit b704157 into rancher:master Jul 16, 2024
7 checks passed
iamsarthakk pushed a commit to iamsarthakk/rke2 that referenced this pull request Aug 19, 2024
…cher#5326)

* Add updatecli configuration to update vsphere cpi and csi charts

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* use updatecli version v0.72.0

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* remove updatecli default steps and add vsphere charts

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

---------

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
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.

6 participants