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 io.kompose.service label to every object & use reaper to delete BuildConfig #578

Merged
merged 3 commits into from
May 17, 2017

Conversation

kadel
Copy link
Member

@kadel kadel commented Apr 27, 2017

  • Add io.kompose.service label to BuildConfig, DaemonSet, ReplicationController and Pod.
  • Use reaper to delete BuildConfig (deletes also pods used for build)

Now every object created by Kompose should have this label.
Only some of the objects had this label before. This fixes #382

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 27, 2017
@kadel kadel force-pushed the add-label branch 2 times, most recently from bd45726 to a2ed264 Compare April 27, 2017 12:26
@kadel kadel changed the title Some of created objects were missing io.kompose.service label Add io.kompose.service label to every object & use reaper to delete BuildConfig Apr 27, 2017
@kadel kadel force-pushed the add-label branch 6 times, most recently from aedf458 to 9c3aa1a Compare April 27, 2017 14:46
@kadel kadel removed the in progress label Apr 27, 2017
Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

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

I thought this was added to all the the controller types that came to function UpdateKubernetesObjects in k8sutils.go. Because the function has a line template.ObjectMeta.Labels = transformer.ConfigLabels(name)

If this was not set somewhere this is being replaced it seems.

@kadel
Copy link
Member Author

kadel commented May 3, 2017

@surajssd template.ObjectMeta.Labels = transformer.ConfigLabels(name) sets labels only for PodTemplate in controller object, but on for object itself.

@surajssd
Copy link
Member

surajssd commented May 3, 2017

@kadel oh yes, thanks for clarifying that one.

kadel added 3 commits May 16, 2017 17:56
label added to BuildConfig, DaemonSet, ReplicationController, Deployment and Pod
added files required by BuildConfig reaper
@kadel
Copy link
Member Author

kadel commented May 16, 2017

ping @cdrage @surajssd @procrypt @containscafeine

@cdrage
Copy link
Member

cdrage commented May 16, 2017

I don't see anything wrong with the code, testing it, it works as intended!

LGTM!

@kadel kadel merged commit dbceb2d into kubernetes:master May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. review needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kompose down with openshift doesn't delete BuildConfig
4 participants