Skip to content

Commit 3a3492a

Browse files
Improve comment about how plugin-framework provider is configured (#11442) (#19142)
[upstream:f34f5c63183b8584360c5a0468328f710057645d] Signed-off-by: Modular Magician <[email protected]>
1 parent d45a38f commit 3a3492a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changelog/11442.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/fwprovider/framework_provider.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ func (p *FrameworkProvider) Configure(ctx context.Context, req provider.Configur
967967
return
968968
}
969969

970-
// Example client configuration for data sources and resources
970+
// This is how we make provider configuration info (configured clients, default project, etc) available to resources and data sources
971+
// implemented using the plugin-framework. The resources' Configure functions receive this data in the ConfigureRequest argument.
971972
resp.DataSourceData = &p.FrameworkProviderConfig
972973
resp.ResourceData = &p.FrameworkProviderConfig
973974
}

0 commit comments

Comments
 (0)