Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Clean left pods on kubernetes cluster startup #675

Merged
merged 3 commits into from
May 26, 2017

Conversation

mpatelcz
Copy link
Contributor

After dirty shutdown some of the pods may still be in the registry and creation of them caused errors.
Adding flag which will allow to clear cluster on startup so that creation of pods is guaranteed.

@mpatelcz mpatelcz force-pushed the mpatelcz/k8s_cleanup_leftovers branch from 3a7af99 to 4426f60 Compare May 24, 2017 10:32
@mpatelcz mpatelcz requested a review from borqosky May 24, 2017 10:34
@mpatelcz mpatelcz force-pushed the mpatelcz/k8s_cleanup_leftovers branch 5 times, most recently from d1b6560 to ec593a8 Compare May 25, 2017 11:43
@mpatelcz mpatelcz closed this May 25, 2017
@mpatelcz mpatelcz reopened this May 25, 2017
@mpatelcz mpatelcz force-pushed the mpatelcz/k8s_cleanup_leftovers branch from ec593a8 to 01b410b Compare May 25, 2017 11:57
@mpatelcz
Copy link
Contributor Author

run integration tests

3 similar comments
@mpatelcz
Copy link
Contributor Author

run integration tests

@mpatelcz
Copy link
Contributor Author

run integration tests

@mpatelcz
Copy link
Contributor Author

run integration tests

@mpatelcz mpatelcz force-pushed the mpatelcz/k8s_cleanup_leftovers branch from 01b410b to d360694 Compare May 26, 2017 10:06
@mpatelcz
Copy link
Contributor Author

run integration tests

skonefal and others added 3 commits May 26, 2017 15:21
Name and description of the flag was changed so that it reflects its
purpose.

Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
Implemented test checking if removing unwanted pods in k8s works.

Reworked the code responsible for the removal of the pods.

Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
@mpatelcz mpatelcz force-pushed the mpatelcz/k8s_cleanup_leftovers branch from d360694 to 1b47aa4 Compare May 26, 2017 13:26
@mpatelcz
Copy link
Contributor Author

run integration tests

},
)
if err != nil {
panic(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need wrap an error here - just panic can looks ugly

@ppalucki ppalucki merged commit 2fe86cd into master May 26, 2017
@iwankgb iwankgb deleted the mpatelcz/k8s_cleanup_leftovers branch September 26, 2017 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants