question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConfigGroup and renderYamlToDirectory provider

See original GitHub issue

Might be more of a question, is an explicit provider with renderYamlToDirectory supported?

If so, it’s not working and this is a bug 😃

Pulumi: v3.10.1 kubernetes: 3.7.0

This is in the context of a ConfigGroup with transformations if it matters.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lamsoncommented, Oct 12, 2021

“kubeconfig” arg is not compatible with “renderYamlToDirectory” arg

This is saying that you also have the kubeconfig option set to a non-empty string. Do your transformations set kubeconfig?

If you already have $KUBECONFIG environment variable set, the provider by default will read it and have a truthy kubeconfig value.

The workaround is to explicitly set kubeconfig: ""

import * as k8s from "@pulumi/kubernetes";

const yamlProvider = new k8s.Provider("yaml-provider", {
    kubeconfig: "", // <--- explicitly set kubeconfig to non-truthy value
    renderYamlToDirectory: "debug-yaml",
});

const group = new k8s.yaml.ConfigGroup("group", {
    files: "yaml/*.yaml"
}, { provider: yamlProvider });
0reactions
thrixtoncommented, Oct 15, 2021

@lamson , thanks for that, that was the exact problem.
Much appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

renderYamlToDirectory fails when kubeconfig is empty #992
Problem description Hi, I'm trying to use renderYamlToDirectory which was ... pulumi:providers:kubernetes resource 'foo-us-west1's property ...
Read more >
Migrating From Kubernetes YAML or Helm Charts - Pulumi
ConfigFile : deploy a single Kubernetes YAML file; ConfigGroup : deploy a ... set the renderYamlToDirectory property on an explicit Kubernetes provider ......
Read more >
Pulumi kubernetes ConfigGroup takes string, I only got Outputs
Any time you're needing to use an output value inside a string, you'll need to make sure the output is resolved using an...
Read more >
Manage Kubernetes clusters using the Civo Pulumi provider
Once the cluster is ready and the Kubernetes provider is configured, we will use Pulumi's k8s.yaml.ConfigGroup object to deploy Ambassador's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found