Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML support for Go SDK #1093

Merged
merged 27 commits into from
May 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update template
  • Loading branch information
lblackstone committed May 6, 2020
commit 7b18f6e7905cc481d5b85c0a68ff6e9037400741
4 changes: 2 additions & 2 deletions provider/pkg/gen/go-templates/configFile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

// ConfigFile creates a set of Kubernetes resources from a Kubernetes YAML file.
type ConfigFile struct {
pulumi.ResourceState

Expand All @@ -30,12 +31,11 @@ type ConfigFile struct {

type ConfigFileArgs struct {
// File is a path or URL that uniquely identifies a file.
// TODO(joe): the .NET client seems to accept an input. Isn't that wrong? It will create resources inside Apply!
File string
// Transformations is an optional list of transformations to apply to Kubernetes resource definitions
// before registering with the engine.
Transformations []Transformation
// ResourcePrefix isn optional prefix for the auto-generated resource names. For example, a resource named `bar`
// ResourcePrefix is an optional prefix for the auto-generated resource names. For example, a resource named `bar`
// created with resource prefix of `"foo"` would produce a resource named `"foo-bar"`.
ResourcePrefix string
}
Expand Down