Skip to content

Commit

Permalink
Fix go
Browse files Browse the repository at this point in the history
  • Loading branch information
viveklak committed Mar 4, 2022
1 parent eae6f35 commit 30ff997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion provider/pkg/gen/_go-templates/helm/v3/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ func parseChart(ctx *pulumi.Context, name string, args chartArgs, opts ...pulumi
}

var invokeOpts []pulumi.InvokeOption
var resourceOpts []pulumi.ResourceOption
for _, o := range opts {
invokeOpts = append(invokeOpts, o)
resourceOpts = append(resourceOpts, o)
}
objs, err := helmTemplate(ctx, string(b), invokeOpts...)
if err != nil {
Expand All @@ -303,7 +305,7 @@ func parseChart(ctx *pulumi.Context, name string, args chartArgs, opts ...pulumi
transformations = yaml.AddSkipAwaitTransformation(transformations)
}

resources, err := yaml.ParseYamlObjects(ctx, objs, transformations, args.ResourcePrefix, opts...)
resources, err := yaml.ParseYamlObjects(ctx, objs, transformations, args.ResourcePrefix, resourceOpts...)
if err != nil {
return nil, err
}
Expand Down
4 changes: 3 additions & 1 deletion sdk/go/kubernetes/helm/v3/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ func parseChart(ctx *pulumi.Context, name string, args chartArgs, opts ...pulumi
}

var invokeOpts []pulumi.InvokeOption
var resourceOpts []pulumi.ResourceOption
for _, o := range opts {
invokeOpts = append(invokeOpts, o)
resourceOpts = append(resourceOpts, o)
}
objs, err := helmTemplate(ctx, string(b), invokeOpts...)
if err != nil {
Expand All @@ -303,7 +305,7 @@ func parseChart(ctx *pulumi.Context, name string, args chartArgs, opts ...pulumi
transformations = yaml.AddSkipAwaitTransformation(transformations)
}

resources, err := yaml.ParseYamlObjects(ctx, objs, transformations, args.ResourcePrefix, opts...)
resources, err := yaml.ParseYamlObjects(ctx, objs, transformations, args.ResourcePrefix, resourceOpts...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 30ff997

Please sign in to comment.