INNER CODE UNIT · Go
func
fluxcd/terraform-provider-flux · internal/provider/provider.go:119
func (p *fluxProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) {
resp.TypeName = "flux"
resp.Version = p.version
}
func (p *fluxProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"kubernetes": schema.SingleNestedAttribute{
Description: "Configuration block with settings for Kubernetes.",
Attributes: map[string]schema.Attribute{
"host": schema.StringAttribute{
Optional: true,
Description: "The hostname (in form of URI) of Kubernetes master.",
},
attrUsername: schema.StringAttribute{
Optional: true,
Description: "The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint.",