fast-easter-23401
11/29/2021, 3:40 PMnginx-ingress
controller and cert-manager
using helm. I was wondering if it is possible to import these resources using kubernetes.helm.v3.Release
. The TS API for helm Releases works like charm when it comes to create new resources, but fails to import existent resources. I manufactured a k8s provider (on GCP) to this end, but got consistently the same error while attempting to import a resource using the class constructor.
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (cert-manager):
error: Preview failed: failed to download "cert-manager" at version "v1.1.0"
And here's my code:
const k8sProvider = getKubeconfig(projectId, {
name: cluster.name,
endpoint: cluster.endpoint,
clusterCaCert: cluster.masterAuth.clusterCaCertificate,
});
const certManager = new kubernetes.helm.v3.Release(
'cert-manager',
{
chart: 'cert-manager',
version: 'v1.1.0',
repositoryOpts: {
repo: '<https://charts.jetstack.io>',
},
values: { installCRDs: true },
},
{
import: 'cert-manager',
provider: k8sProvider,
protect: true,
}
);
I'm confident enough that this problem does not relate to the use of my provider (I used it to import successfully secrets, configMaps and some other k8s resources).
Thanks for your help and time.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by