-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
examples/kustomize/patch.yaml
Outdated
app: kustomize-test | ||
spec: | ||
replicas: 1 | ||
selector: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this 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.
pkg/skaffold/deploy/kubectl.go
Outdated
@@ -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", "-") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No description provided.