From 5df052d0a333c9e8dffbfc9feddd0738e4618a8b Mon Sep 17 00:00:00 2001 From: Sumedh Degaonkar Date: Thu, 8 Feb 2024 14:24:34 -0800 Subject: [PATCH] wait for serviceaccount to be created --- CHANGELOG.md | 5 +++++ test/helpers/test_provisioner.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 285b7fcc5..17281b3d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## next +# 3.5.1 + +- Fix local run for integration tests + + # 3.5.0 - Test against k8s 1.28 diff --git a/test/helpers/test_provisioner.rb b/test/helpers/test_provisioner.rb index c439ad0c5..a69f05da1 100644 --- a/test/helpers/test_provisioner.rb +++ b/test/helpers/test_provisioner.rb @@ -56,6 +56,7 @@ def create_namespace(namespace) ns = Kubeclient::Resource.new(kind: 'Namespace') ns.metadata = { name: namespace } kubeclient.create_namespace(ns) + sleep(5) # wait for the serviceaccount 'default' to be created; https://github.com/kubernetes/kubernetes/issues/66689 end end end