This message was deleted.
# kubernetes
s
This message was deleted.
d
This should be resolved with the v4.5.4 release of pulumi kubernetes, can you check your version please
b
Copy code
❯ go list -m all | grep pulumi-kubernetes/sdk
<http://github.com/pulumi/pulumi-kubernetes/sdk/v3|github.com/pulumi/pulumi-kubernetes/sdk/v3> v3.30.2
<http://github.com/pulumi/pulumi-kubernetes/sdk/v4|github.com/pulumi/pulumi-kubernetes/sdk/v4> v4.5.5
I updated the pulumi-kubernetes package to 4.5.5 but it seems
<http://github.com/pulumi/pulumi-kubernetes-cert-manager|github.com/pulumi/pulumi-kubernetes-cert-manager> v0.0.5
is using 3.30.2
d
That's odd. The error you're seeing is a regression in 4.5.0. I'm not familiar enough with the golang systems to help on that. I've always implemented cert-manager without the provided component resource, you could take a look at the code for how to do it yourself. It should just be the helm release + YamlFile resources
b
I might end up doing just that. Thanks for responding on this though 🙂
s
I had this issue a couple weeks ago and a pulumi upgrade fixed it
b
Already using latest version for that though:
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.94.2
m
Is there a difference between NewChart and NewRelease, or do we need to use them together in some way? https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/release/ https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/chart/ To me it looks like both installs a helm chart, or am I wrong?
d
Release will use
helm install
internally, so everything is managed by helm. Chart will use
helm template
, then pulumi will load the resources into the stack. Worth reading this: https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/choosing-the-right-helm-resource-for-your-use-case/
👀 1
🙏 1
m
For now we did yaml.NewConfigFile and fetch the crd and put a pulumi.DependsOn on the configfile at the end of the call to NewChart. Seems to work.
d
Yep this is the recommended way for cert-manager. It's a relatively simple chart, so Chart and Release can be used interchangeably here.
s
is that better to use then this?
k8s.yaml.ConfigFile
d
@stale-answer-34162 it's the same thing, just named differently in the go-sdk
m
@dry-keyboard-94795 thank you for the link to the article above.