Skip to content

Commit

Permalink
Merge pull request #18 from previousnext/fix-lint
Browse files Browse the repository at this point in the history
Fix linting
  • Loading branch information
nickschuch authored Jul 12, 2021
2 parents 4bf6bb5 + 5db57f2 commit ddfa94a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/datasources/datasources.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const (
FieldDeploymentImage = "k8s_apps_v1_deployment_image"
)

// DataSourcesMap returns a list of data sources.
func DataSourcesMap() map[string]*schema.Resource {
// Map returns a list of data sources.
func Map() map[string]*schema.Resource {
return map[string]*schema.Resource{
FieldDeploymentImage: deploymentimage.Source(),
}
Expand Down
3 changes: 2 additions & 1 deletion internal/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const (
FieldPodDisruptionBudget = "k8s_policy_v1beta1_poddisruptionbudget"
)

func ResourcesMap() map[string]*schema.Resource {
// Map returns a list of resources.
func Map() map[string]*schema.Resource {
return map[string]*schema.Resource{
FieldNamespace: namespace.Resource(),
FieldDeployment: deployment.Resource(),
Expand Down
4 changes: 2 additions & 2 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
func Provider() *schema.Provider {
return &schema.Provider{
Schema: config.Fields(),
DataSourcesMap: datasources.DataSourcesMap(),
ResourcesMap: resources.ResourcesMap(),
DataSourcesMap: datasources.Map(),
ResourcesMap: resources.Map(),
ConfigureFunc: config.Func,
}
}

0 comments on commit ddfa94a

Please sign in to comment.