This message was deleted.
# golang
s
This message was deleted.
r
thanks, as I am not too familiar with Golang so far I struggle a bit with the syntax. e.g. how to provide SecretArgs / Data for the
Copy code
NewSecret(...)
call.
i
i haven’t used pulumi with kubernetes, so there may be more arguments required here, but something like
Copy code
secret, err := core.NewSecret(ctx, "my-secret", &core.SecretArgs{
                        Data: pulumi.StringMap{
                                "key1": pulumi.String("Secret i want to store"),
                        },
                })
assuming you’ve imported the packages as
Copy code
import (
        core "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/core/v1"
        "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
r
👍
worked my way through to the same point, but I think I am getting more familiar 😉
thx Gareth
Are errors in Pulumi typed so I can work with
errors.Is()
 &
errors.As()
i
not for the most part, no 😞