Skip to content

e2e: use labels for configmap api; wait for default service account creation #1348

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

Merged
merged 3 commits into from
Jan 13, 2021

Conversation

roycaihw
Copy link
Member

@roycaihw roycaihw commented Jan 5, 2021

The Bound Service Account Tokens feature creates a configmap kube-root-ca.crt in every namespace. Use a label to select the test objects we create.

Also wait for the default service account to be created before creating pods that need it.

/hold
wait for the tests to pass

The submodule update contains two commits, which do not require CHANGELOG change:

  1. add labels to dynamic/test_client.py::TestDynamicClient::test_configmap_apis
  2. add Python 3.9 to build

ref kubernetes-client/python-base#222, #1347

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 5, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: roycaihw

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 yliaog January 5, 2021 18:03
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 5, 2021
@roycaihw roycaihw force-pushed the configmap-e2e/labels branch 3 times, most recently from 3849ad9 to 866fe44 Compare January 7, 2021 03:01
@yliaog
Copy link
Contributor

yliaog commented Jan 7, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 7, 2021
@roycaihw
Copy link
Member Author

roycaihw commented Jan 8, 2021

There are some new test failure regarding the default service account not getting created before pod creation. Thought that it was a flake but it seemed not. I will take another look soon

@roycaihw roycaihw force-pushed the configmap-e2e/labels branch from 866fe44 to 3b95adc Compare January 11, 2021 20:34
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 11, 2021
@yliaog
Copy link
Contributor

yliaog commented Jan 11, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 11, 2021
@roycaihw roycaihw force-pushed the configmap-e2e/labels branch 3 times, most recently from 2b7af1b to 09a4935 Compare January 12, 2021 22:15
@roycaihw
Copy link
Member Author

(fixed some syntax error) The tests pass now https://travis-ci.org/github/kubernetes-client/python/builds/754195162.
@yliaog Could you take another look? Thanks

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 13, 2021
@@ -65,6 +72,23 @@ def test_pod_apis(self):

name = 'busybox-test-' + short_uuid()
pod_manifest = manifest_with_command(name, "while true;do date;sleep 5; done")

# wait for the default service account to be created
Copy link
Contributor

Choose a reason for hiding this comment

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

better to give a timeout than wait forever

Copy link
Member Author

Choose a reason for hiding this comment

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

done

/hold
wait for test results

Copy link
Member Author

Choose a reason for hiding this comment

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

/hold cancel
The test is green

@@ -130,6 +154,23 @@ def test_exit_code(self):

name = 'busybox-test-' + short_uuid()
pod_manifest = manifest_with_command(name, "while true;do date;sleep 5; done")

# wait for the default service account to be created
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@roycaihw roycaihw force-pushed the configmap-e2e/labels branch from 09a4935 to 6deaaf8 Compare January 13, 2021 00:42
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 13, 2021
@roycaihw roycaihw changed the title configmap e2e: use labels and label selector e2e: use labels for configmap api; wait for default service account creation Jan 13, 2021
@roycaihw roycaihw force-pushed the configmap-e2e/labels branch from 6deaaf8 to 9093103 Compare January 13, 2021 01:19
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 13, 2021
@yliaog
Copy link
Contributor

yliaog commented Jan 13, 2021

/lgtm

thanks for fixing it.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 13, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3e615b6 into kubernetes-client:master Jan 13, 2021
@roycaihw roycaihw deleted the configmap-e2e/labels branch January 13, 2021 21:56
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. 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/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.

3 participants