Open mikhail-khodorovskiy opened 1 year ago
if len(files) != 0:
local_resource(name+'-install', cmd='kubectl apply -f %s' % " -f ".join(files), deps=files) # we can wait/depend on this, but it won't cause a proper uninstall
k8s_yaml(files) # this will cause a proper uninstall, but we can't wait/depend on it
# TODO: Figure out how to avoid another named resource showing up in the tilt HUD for this waiter
local_resource(name+'-ready', resource_deps=[name+'-install'], cmd='kubectl wait --for=condition=Established crd --all') # now we can wait for those crds to finish establishing
Allow duplicates may have to be propagated to the place where CRDs are installed: https://github.com/tilt-dev/tilt-extensions/blob/master/helm_remote/Tiltfile#L216 - still not clear why this works on MacOSx though.
ya, we'd accept a pr to propagate allow duplicates to install_crds
as for why it works on macos -- my guess is that you've got a different version of grep on your macos box, and so the install_crds function isn't properly filtering the CRDs. The grep ecosystem on macos is really fractured. does it fail if you install the coreutils version of grep (brew install coreutils)?
Fails on
with an error
and the downloaded crds:
while on MacOSx
works as expected with the same downloaded CRDs list: