Skip to content

Conversation

nvanheuverzwijn
Copy link
Contributor

@nvanheuverzwijn nvanheuverzwijn commented Oct 14, 2020

This PR adds a test to make sure that stable and alpha channel image will receive proper updates when running kops upgrade cluster. This test will fail if image channel changes without adding the proper prefix in HasUpstreamImagePrefix function.

Example of failed test :

=== RUN   TestStableChannel
--- FAIL: TestStableChannel (0.00s)
    integration_test.go:410: Stable image '099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200907' has not a recognized prefix. Add the correct prefix to HasUpstreamImagePrefix function
=== RUN   TestAlphaChannel
--- FAIL: TestAlphaChannel (0.00s)
    integration_test.go:430: Alpha image channel '099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200907' has not a recognized prefix. Add the correct prefix to HasUpstreamImagePrefix function
FAIL
FAIL	k8s.io/kops/tests/integration/channel	0.023s
FAIL

Fixes: #10021

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 14, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @nvanheuverzwijn. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 14, 2020
@nvanheuverzwijn
Copy link
Contributor Author

@hakman This would be it

@nvanheuverzwijn nvanheuverzwijn force-pushed the add-test-cluster-upgrade branch from 27d89c7 to b0fd89a Compare October 14, 2020 14:14
@hakman
Copy link
Member

hakman commented Oct 14, 2020

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 14, 2020
Copy link
Member

@hakman hakman left a comment

Choose a reason for hiding this comment

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

This looks good @nvanheuverzwijn. Just a minor change in the new test and should be good to go.

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
@nvanheuverzwijn
Copy link
Contributor Author

Thank you @hakman

@hakman
Copy link
Member

hakman commented Oct 14, 2020

Thanks for sticking with this @nvanheuverzwijn.
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman, nvanheuverzwijn

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 14, 2020
@k8s-ci-robot k8s-ci-robot merged commit 6611e53 into kubernetes:master Oct 14, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Oct 14, 2020
@nvanheuverzwijn nvanheuverzwijn deleted the add-test-cluster-upgrade branch October 14, 2020 20:06
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/api 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kops upgrade image requires kope.io
3 participants