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

Decouple test and install script #7080

Merged

Conversation

voelzmo
Copy link
Contributor

@voelzmo voelzmo commented Jul 22, 2024

What type of PR is this?

What this PR does / why we need it:

This PR decouples the way that we provide for installing VPA directly from this repository (via ./hack/vpa-up.sh) from the e2e tests. Currently, both take their payload directly from master: this makes sense for e2e tests, as they should continuously make sure that the master is still nice and green, but leads to problems, when we introduce change like new parameters for the components (e.g. #6665) or modify the CRD (e.g. #5911).

In those cases, ./hack/vpa-up.sh also gets the new CRDs or Deployment yaml files, which don't work well with the last released versions – because they don't contain the necessary code changes. This leads to problems like #6977 and #5982 (comment)

With this PR, we switch to the latest release TAG, so we don't get in new, unreleased changes in the CRDs, yamls, etc. The ./hack/vpa-up.sh script is also used during release validation, therefore we assume that the user knows what they are doing if they have set a custom TAG and just leave the current state of the repo.

Which issue(s) this PR fixes:

Fixes #7011

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: voelzmo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from jbartosik July 22, 2024 16:04
@k8s-ci-robot k8s-ci-robot requested a review from krzysied July 22, 2024 16:04
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 22, 2024
@Shubham82
Copy link
Contributor

Thanks @voelzmo for this PR.
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 22, 2024
@k8s-ci-robot k8s-ci-robot merged commit 2c04c53 into kubernetes:master Jul 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VPA admission-controller tests are failing
3 participants