stocky-refrigerator-75813
04/15/2024, 2:55 PMmysql_manifest_url = 'src/yaml/mysql.yaml'
k8s_yaml = k8s.yaml.ConfigFile("mysql", file=mysql_manifest_url,opts=pulumi.ResourceOptions(
provider = k8s_provider,
retain_on_delete=False,
delete_before_replace=True,
custom_timeouts=pulumi.CustomTimeouts(
create="10m",
update="10m",
delete="10m"
)
))
and i get the error:
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "/opt/homebrew/bin/pulumi-language-python-exec", line 191, in <module>
loop.run_until_complete(coro)
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/marcboorshtein/Documents/bookv3/venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 132, in run_in_stack
await run_pulumi_func(run)
File "/Users/marcboorshtein/Documents/bookv3/venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 53, in run_pulumi_func
await wait_for_rpcs()
File "/Users/marcboorshtein/Documents/bookv3/venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 109, in wait_for_rpcs
await task
TypeError: 'module' object is not callable
The problem appears to be a Certificate
entry:
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mysql
namespace: mysql
spec:
secretName: mysql-tls
duration: 2160h
renewBefore: 360h
subject:
organizations:
- k8s-enterprise-guide
commonName: mysql.mysql.svc
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
- client auth
dnsNames:
- mysql.mysql.svc
issuerRef:
name: enterprise-ca
kind: ClusterIssuer
group: cert-manager.io
Is this a bug in pulumi? only thing that i can think of is that its crashing on the secret mysql-tls
not existing?hundreds-gpu-71155
04/15/2024, 3:02 PMos.path()
. Nothing in the provided snippet stands out as an obvious typo, so either theres a mistake in your imports, or your bug is elsewherestocky-refrigerator-75813
04/15/2024, 3:06 PMConfig
line avoids the error, as does removing the Certificate
object from the manifesthundreds-gpu-71155
04/15/2024, 3:10 PMawait task
, which for a TypeError like that means it must have been forwarded from whatever task
was. If there's more stack trace, that might give indication if there's a bug in one of my pulumi libraries. But in my experience, weird errors coming from the middle of pulumi is actually a bug in my code that's just exposed someplace else.
You might also see this behavior if any of those variables are `Output`s that only get used here (and therefore don't get resolved if you comment it out)stocky-refrigerator-75813
04/15/2024, 3:18 PMstocky-refrigerator-75813
04/15/2024, 3:19 PMhundreds-gpu-71155
04/15/2024, 3:48 PMhundreds-gpu-71155
04/15/2024, 3:50 PM