<#56 Lazily initialize kubernetes client only when...
# flyte-github
a
#56 Lazily initialize kubernetes client only when using kube api watcher Pull request opened by jeevb TL;DR Lazily load k8s client only in kubeapi watcher. This prevents init container errors when running with service accounts that have
automountServiceAccountToken: false
set. Smoke tested in sandbox with and without
automountServiceAccountToken: false
, with both the default shared process namespace watcher and kubeapi watcher respectively. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description Moved initialization of k8s client from copilot root command to
NewKubeAPIWatcher
function. Now it is only initialized when the
kube-api
watcher is specified. flyteorg/flytecopilot GitHub Actions: Goreleaser GitHub Actions: Build & Push Flyte copilot Image GitHub Actions: Bump Version 9 other checks have passed 9/12 successful checks