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 a Go SDK #1029

Merged
merged 52 commits into from
Mar 21, 2020
Merged

Add a Go SDK #1029

merged 52 commits into from
Mar 21, 2020

Conversation

lukehoban
Copy link
Member

@lukehoban lukehoban commented Mar 12, 2020

This is 99% the work of @lblackstone and @pgavlin 🙏 .

It is still WIP, but opening the PR as it is now in a usable state and ready for more eyes.

package main

import (
	corev1 "github.com/pulumi/pulumi-kubernetes/sdk/go/kubernetes/core/v1"
	"github.com/pulumi/pulumi/sdk/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := corev1.NewPod(ctx, "foo", &corev1.PodArgs{
			Spec: corev1.PodSpecArgs{
				Containers: corev1.ContainerArray{
					corev1.ContainerArgs{
						Name:  pulumi.String("nginx"),
						Image: pulumi.String("nginx"),
					},
				},
			},
		})
		if err != nil {
			return err
		}

		return nil
	})
}

Fixes #70.

@lukehoban lukehoban changed the title Add a Go SDK [WIP] Add a Go SDK Mar 12, 2020
@lukehoban lukehoban force-pushed the lukehoban/schema branch 2 times, most recently from d19563c to 4fa2fd0 Compare March 12, 2020 06:39
@joeduffy joeduffy mentioned this pull request Mar 18, 2020
3 tasks
cmd/pulumi-gen-kubernetes/main.go Outdated Show resolved Hide resolved
pkg/provider/provider.go Outdated Show resolved Hide resolved
pkg/gen/typegen.go Outdated Show resolved Hide resolved
pkg/gen/typegen.go Outdated Show resolved Hide resolved
@lukehoban
Copy link
Member Author

Looks like I'm not allowed to "Approve" since I opened this - but LGTM 🎉. @lblackstone you may need to sign off yourself to unblock the review checks.

@lblackstone
Copy link
Member

Ok, just need to merge #1021 and then resolve merge conflicts with this PR and we should be good to go.

# Conflicts:
#	pkg/gen/typegen.go
@lblackstone lblackstone changed the title [WIP] Add a Go SDK Add a Go SDK Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Go provider
3 participants