Skip to content

Commit

Permalink
Enable deferred actions in provider.Configure
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston committed Jan 15, 2025
1 parent 1c4864f commit 7caeb6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ func execSchemaAttrTypes() map[string]attr.Type {

// Setting up the provider, anything we need to get the provider running, probbaly authentication. like the api
func (p *HelmProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) {
if req.ClientCapabilities.DeferralAllowed && !req.Config.Raw.IsFullyKnown() {
resp.Deferred = &provider.Deferred{
Reason: provider.DeferredReasonProviderConfigUnknown,
}
}

pluginsPath := os.Getenv("HELM_PLUGINS_PATH")
registryConfigPath := os.Getenv("HELM_REGISTRY_CONFIG_PATH")
repositoryConfigPath := os.Getenv("HELM_REPOSITORY_CONFIG_PATH")
Expand Down

0 comments on commit 7caeb6b

Please sign in to comment.