Hello, I'm trying to run a few unit tests on a k8s...
# kubernetes
m
Hello, I'm trying to run a few unit tests on a k8s cluster. For instance, I'd like to check that a deployment name is well formed. The problem I have (golang) is that the method
Deployment.Metadata.Name()
returns a
pulumi.StringPtrOutput
and I don't have a clue about how to get a string back... I guess it's pretty obvious but I can't see how to fix that...
ok, I've to use
Apply()
and put my tests inside it. but anyways, it looks like
Deployment.Metadata.Elem().Name()
returns a
*string
so it's even easier 🙂