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

Adds Operational Actions to the Kubernetes layer #31202

Closed

Conversation

lazypower
Copy link
Contributor

@lazypower lazypower commented Aug 23, 2016

What this PR does / why we need it:

This PR adds management actions to the Kubernetes charm to cordon/drain nodes, as well as resume operation once the action(s) have been taken.

Special notes for your reviewer:

If you wish to test these actions, feel free to deploy

export KUBERNETES_PROVIDER=juju
cluster/kube-up.sh
... once deployed ...
juju run-action kubernetes/0 microbot replicas=15
juju run-action kubernetes/1 pause
... verify unit is cordoned, and drained ...
juju run-action kubernetes/1 resume

Release note:

Adds operational actions to the juju charm layer - pause/resume

This change is Reviewable

 - pause - will cordon and drain a node forcefully
 - resume - will uncordon a node
 - microbot - Deploys a set number of pods to illustrate the operational
   actions
@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@lazypower
Copy link
Contributor Author

@mbruzek When you have a moment, would you mind taking a look over this PR and ensure its sane? It works well for me in testing.

@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

5 similar comments
@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@k8s-bot
Copy link

k8s-bot commented Aug 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message will repeat several times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Aug 23, 2016
Updates the action descriptions for a crisper CLI output. THe longer
descriptions were word-wrapping and didn't add much value to the text.
Longer descriptions have been moved to the README.
@marcoceppi
Copy link
Contributor

👍 from me, tested locally

@lazypower
Copy link
Contributor Author

@zmerlynn I forgot if the project prefers single squashed commits. Let me know and I'll update accordingly.

@castrojo
Copy link
Member

LGTM, tested on GCE.

@mbruzek
Copy link
Contributor

mbruzek commented Sep 23, 2016

We still need this PR to land. We got stuck in the v1.4.0 freeze and now our PR is timing out? Can someone add the 'keep-open' label, I can't add labels.

@mbruzek
Copy link
Contributor

mbruzek commented Oct 12, 2016

@kubebot "ok to test"

Copy link
Contributor

@mbruzek mbruzek left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@lazypower
Copy link
Contributor Author

I'm going to close this PR as its superseded by other work and is now stale. The new work will be proposed against kubernetes proper sooner rather than continue to ride this PR against a layer we are deprecating.

@lazypower lazypower closed this Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants