This message was deleted.
# python
s
This message was deleted.
i
I’m not sure, is this a Kubernetes thing? enforcing the names of a subdomain?
g
Yeah, that error is coming from the k8s API server.
l
yeah, but the same works for deployments
so i think pulumi is doing some processing on configmap name
i
it is, but it’s not putting the slash in there I don’t think, which I think is what kubernetes is complaining about
it’s putting the random suffix on the end
what’s the code that creates this job?
l
hm, interesting. i noticed something, let me check
i've noticed i'm doing this for deployments:
Copy code
config_map_name = config_map.metadata.apply(lambda resource: resource['name'])
i think this worked for job as well
just passing config_map didnt work
yeah, i think its working like this
sorry for bothering
i
No worries! You can also write
Copy code
config_map.metadata["name"]
instead of doing the explicit apply here, this is just some syntax sugar on top of what you’re doing