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 unstructured converter and test fixtures #446

Merged
merged 3 commits into from Feb 25, 2019

Conversation

lblackstone
Copy link
Member

No description provided.

@lblackstone lblackstone added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Feb 22, 2019
Copy link
Contributor

@metral metral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of comments but LGTM

pkg/await/fixtures/deployment.go Outdated Show resolved Hide resolved
}

var output metav1.Object
switch kinds.Kind(obj.GetKind()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have docs stating which objects are supported today vs not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll add docs eventually, but for right now, this is the set of objects we're using the in complex await logic.

"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)

func TestFromUnstructured(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there plans to test the rest of the supported objects other than the Pod and Deployment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, probably should have been more clear in the description, but this PR is basically a prototype to make sure the approach made sense before I fully committed to it. My intent is to expand these fixtures to replace all the giant YAML strings in the unit tests. I'll keep fleshing things out over multiple PRs.

@lblackstone lblackstone merged commit 722455d into master Feb 25, 2019
@pulumi-bot pulumi-bot deleted the lblackstone/unstructured-converter branch February 25, 2019 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants