-
Notifications
You must be signed in to change notification settings - Fork 771
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
kompose up/down create and delete pvc #220
Conversation
was trying to test this for openshift but seems like this change is only for kube - should we update both at the same time? |
also managed to get this error - but not sure where it came from:
|
@dustymabe sorry for not labeling it, so creating a PVC was easy thing to do, but looking at how can I delete it, it's not straightforward like other objects, so stuck on it right now, so mostly following code from |
8720532
to
8b3bad6
Compare
So I need some review here with respect to how |
hey suraj - this is working for openshift now :) - one thing though. should we modify the following line to include
|
8b3bad6
to
ce041db
Compare
@dustymabe sure done for k8s as well! That's nice catch! Never mind #220 (comment) check latest changes! |
so you figured out how to go about doing the undeploy? |
@dustymabe yes with @kadel 's help got some pointers earlier today from old code that once @ngtuna did here https://github.com/kubernetes-incubator/kompose/blob/e08ab06f2c1dacf2bae477bb5faace2feb387c90/pkg/transformer/kubernetes/kubernetes.go#L298 |
up/down seems to be working for me now. I'm good with this - just need a maintainer to review. |
Code LGTM. Haven't tested yet but @dustymabe did it. |
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.
I would add one small comment explaining TIMEOUT const. Otherwise LGTM 👍
Great work @surajssd
) | ||
|
||
type Kubernetes struct { | ||
} | ||
|
||
const TIMEOUT = 300 |
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 add comment explaining what where this timeout is used or what is it for?
pvc will be parsed when passing objects via kube client to create various objects. Also while deleting pvc will be deleted. Fixes kubernetes#218
ce041db
to
2444996
Compare
@kadel done! https://github.com/kubernetes-incubator/kompose/pull/220/files#diff-08d4e6a1922a157aca193e75416bbb9cR48 Also merging :) Thanks @dustymabe @kadel and @ngtuna for reviewing! |
pvc will be parsed when passing objects via kube client to create various objects. Also while deleting pvc will be deleted.
Fixes #218