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 kustomize deployer #641

Merged
merged 9 commits into from Jun 6, 2018
Merged

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented Jun 6, 2018

No description provided.

app: kustomize-test
spec:
replicas: 1
selector:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you clear everything in here except the piece you're trying to patch? I think it's just image, but it would serve as a better example to reduce duplication.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup will do, I lazy copy-pasta'd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

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

Just the two nits.

@@ -97,7 +97,7 @@ func (k *KubectlDeployer) Deploy(ctx context.Context, out io.Writer, builds []bu
return errors.Wrap(err, "replacing images in manifests")
}

err = k.kubectl(manifests.reader(), out, "apply", "-f", "-")
err = kubectl(manifests.reader(), out, k.kubeContext, "apply", "-f", "-")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: inline these if/errs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@r2d4 r2d4 merged commit 5cfab53 into GoogleContainerTools:master Jun 6, 2018
@r2d4 r2d4 deleted the kustomize-deployer branch June 6, 2018 21:46
@r2d4 r2d4 mentioned this pull request Jun 6, 2018
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.

None yet

2 participants