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

Updated kubelet and kube-proxy integration tests #768

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

addyess
Copy link
Member

@addyess addyess commented Dec 8, 2021

Updated kubelet and kube-proxy integration tests to use non-deprecated commandline arguments

@@ -53,7 +53,7 @@ def timeout_for_current_task(timeout):
asyncio task will be cancelled, and an asyncio.TimeoutError will be raised.
"""
loop = asyncio.get_event_loop()
task = asyncio.Task.current_task()
task = asyncio.current_task()
Copy link
Member Author

Choose a reason for hiding this comment

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

asyncio.Task.current_task() Deprecated in python 3.9

@@ -924,21 +924,20 @@ async def run_extra_args_test(app_name, new_config, expected_args):
"kubelet-extra-args": " ".join(
[
"v=1", # int arg, overrides a charm default
"add-dir-header", # bool arg, implied true
"alsologtostderr=false", # bool arg, explicit false
"log-flush-frequency=5s", # duration arg, explicitly 5s
Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't find an argument to kubelet that wasn't deprecated and was a single flag arg like add-dir-header these were my choices:

  • azure-container-registry-config
  • bootstrap-kubeconfig
  • cert-dir
  • exit-on-lock-contention
  • hostname-override
  • housekeeping-interval
  • image-credential-provider-bin-dir
  • image-credential-provider-config
  • image-service-endpoint
  • lock-file
  • log-flush-frequency
  • node-labels
  • root-dir
  • runtime-cgroups
  • seccomp-default
  • vmodule

Copy link
Member

@kwmonroe kwmonroe left a comment

Choose a reason for hiding this comment

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

@kwmonroe kwmonroe merged commit 8d5d1bd into master Dec 8, 2021
@kwmonroe kwmonroe deleted the tests/kublet-1_23_extra_args branch December 8, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants