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

scripts: improve the validate-charts scripts #7495

Closed

Conversation

Vicente-Cheng
Copy link
Contributor

@Vicente-Cheng Vicente-Cheng commented Jan 9, 2025

Proposed Changes

If we do not have an upper bound, we just need to ensure the lower bound is validated.
e.g. catalog.cattle.io/kube-version: ">= 1.18"

Types of Changes

script update for CI

Verification

Harvester CSI driver uses the annotation catalog.cattle.io/kube-version: ">= 1.18". It should pass the CI validation (for the upper bound).
Should not see the warning below:

[WARN]  Chart harvester-csi-driver:0.1.2200 does not support k8s v1.32.0. Skipping airgap check

Testing

Linked Issues

User-Facing Change


Further Comments

The result of this scripts (with this PR):

[INFO]  Validating chart rke2-cilium, version 1.16.500...
[INFO]  Validating chart rke2-canal, version v3.29.1-build2024121100...
[INFO]  Validating chart rke2-calico, version v3.29.100...
[INFO]  Validating chart rke2-calico-crd, version v3.29.100...
[INFO]  Validating chart rke2-coredns, version 1.36.102...
[INFO]  Validating chart rke2-ingress-nginx, version 4.10.503...
[INFO]  Validating chart rke2-traefik, version 27.0.200...
[INFO]  Validating chart rke2-traefik-crd, version 27.0.200...
[INFO]  Validating chart rke2-metrics-server, version 3.12.004...
[INFO]  Validating chart rke2-multus, version v4.1.301...
[INFO]  Validating chart rke2-flannel, version v0.26.101...
[INFO]  Validating chart rancher-vsphere-cpi, version 1.10.000...
[INFO]  Validating chart rancher-vsphere-csi, version 3.3.1-rancher800...
[INFO]  Validating chart harvester-cloud-provider, version 0.2.600...
[WARN]  Chart harvester-cloud-provider:0.2.600 does not support k8s v1.32.0. Skipping airgap check
[INFO]  Validating chart harvester-csi-driver, version 0.1.2200...
[INFO]  Validating chart rke2-snapshot-controller, version 3.0.601...
[INFO]  Validating chart rke2-snapshot-controller-crd, version 3.0.601...
[INFO]  Validating chart rke2-snapshot-validation-webhook, version 1.9.001...

    If we do not have an upper bound, we just need to ensure
    the lower bound is validated.
    e.g. `catalog.cattle.io/kube-version: ">= 1.18"`

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng requested a review from a team as a code owner January 9, 2025 06:37
@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.26%. Comparing base (cdb7d26) to head (2662895).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7495   +/-   ##
=======================================
  Coverage   23.26%   23.26%           
=======================================
  Files          33       33           
  Lines        3456     3456           
=======================================
  Hits          804      804           
  Misses       2604     2604           
  Partials       48       48           
Flag Coverage Δ
inttests 8.82% <ø> (ø)
unittests 16.53% <ø> (ø)

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.

@brandond
Copy link
Member

brandond commented Jan 9, 2025

I was working on the same thing in #7488, but with a slightly different approach.

@Vicente-Cheng
Copy link
Contributor Author

I was working on the same thing in #7488, but with a slightly different approach.

Cool!
We can use the #7488. I am OK with that approach.
Thanks @brandond!

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.

3 participants