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.

config.Yaml invokes decode but doesn't propagate provider

See original GitHub issue

Hello!

  • Vote on this issue by adding a 👍 reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already)

Issue details

When the default Kubernetes provider is disabled, we cannot use yaml.ConfigFile. It seems that an invoke to yaml::decode is made without propagation of the provider.

Error: Invoke: Default provider for 'kubernetes' disabled. 'kubernetes:yaml:decode' must use an explicit provider

Steps to reproduce

    args.provider.urn.apply((u) => console.log(`Provider URN: ${u}`));

    const crds = new kubernetes.yaml.ConfigFile(
      `${this.name}-crds`,
      { file: this.crdsUrl.replace("${VERSION}", this.version) },
      {
        parent: this,
        provider: args.provider,
        dependsOn: args.dependsOn,
      }
    );

This code fails, even though the URN for my provider is correct.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
viveklakcommented, Jun 29, 2022

@rosskevin you would need to pass the opts to ConfigFile. However, I believe you might run into https://github.com/pulumi/pulumi/issues/9996. Instead you might want to pass the kubernetes provider directly as ConfigFile’s provider resource option.

1reaction
KaoruDevcommented, Apr 25, 2022

I updated to 3.18.2 and it appears the bug is still present

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Harness.io Docs
Most Delegate issues arise from network connectivity where the Delegate is unable to connect to a Cloud Provider, Artifact Server, etc, because ...
Read more >
OpenID Connect (OIDC) authorization code flow mechanism
The Authorization Code Flow mechanism authenticates users of your web application by redirecting them to an OIDC provider, such as Keycloak, to log...
Read more >
12. OAuth2 - Spring
This section shows how to configure the OAuth 2.0 Login sample using Google as the Authentication Provider and covers the following topics:.
Read more >
Manage your Kubernetes secrets with Hashicorp Vault
Once your Kubernetes clusters starts to grow, managing secrets can be a challenge. Yaml ... Deploying and Configuring External Secrets in Kubernetes.
Read more >
Global Mesh Options - Istio
Default value is false . No. defaultConfig, ProxyConfig. Default proxy config used by gateway and sidecars. In case of Kubernetes, the proxy ...
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