Skip to content

Commit

Permalink
Add missing sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Jan 25, 2021
1 parent 22b55a4 commit f0b92ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/helmfile/context.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package helmfile

import (
"github.com/mumoshu/terraform-provider-eksctl/pkg/sdk"
"github.com/mumoshu/terraform-provider-eksctl/pkg/sdk/api"
"github.com/mumoshu/terraform-provider-eksctl/pkg/sdk/tfsdk"
)

func newContext(d api.Getter) *sdk.Context {
conf := tfsdk.ConfigFromResourceData(d,
tfsdk.SchemaOptionAWSRegionKey(KeyAWSRegion),
tfsdk.SchemaOptionAWSProfileKey(KeyAWSProfile),
tfsdk.SchemaOptionAWSAssumeRole(KeyAWSAssumeRole),
)

ctx := sdk.ContextConfig(conf)

return ctx
}
7 changes: 7 additions & 0 deletions pkg/helmfile/schema.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package helmfile

const (
KeyAWSRegion = "aws_region"
KeyAWSProfile = "aws_profile"
KeyAWSAssumeRole = "aws_assume_role"
)

0 comments on commit f0b92ef

Please sign in to comment.