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

Remove katib webhook when undeploy #935

Merged
merged 1 commit into from
Nov 29, 2019
Merged

Remove katib webhook when undeploy #935

merged 1 commit into from
Nov 29, 2019

Conversation

hougangliu
Copy link
Member

@hougangliu hougangliu commented Nov 27, 2019

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:



This change is Reviewable

@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

3 similar comments
@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

@hougangliu
Copy link
Member Author

/retest

2 similar comments
@hougangliu
Copy link
Member Author

/retest

@hougangliu
Copy link
Member Author

/retest

@@ -22,6 +22,8 @@ set -o xtrace
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../..

cd ${SCRIPT_ROOT}
kubectl get validatingwebhookconfigurations katib-validating-webhook-config && kubectl delete validatingwebhookconfigurations katib-validating-webhook-config
kubectl get mutatingwebhookconfigurations katib-mutating-webhook-config && kubectl delete mutatingwebhookconfigurations katib-mutating-webhook-config
Copy link
Member

Choose a reason for hiding this comment

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

Adding kubectl delete in deploy script is confusing. Why do we need this here?

Copy link
Member Author

@hougangliu hougangliu Nov 28, 2019

Choose a reason for hiding this comment

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

if there is same name webhook (when delete katib or kubeflow, webhook will not be deleted), controller won't recreate a new one. And the old one has configured with obsolete secret token, which will lead webhook call fail

Copy link
Member

Choose a reason for hiding this comment

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

@hougangliu But I see that you have added the delete logic(webhook deletion) already in undeploy script. Am i mistaken here?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, here is just a guard to make sure the obsolete webhook removed in case that there is katib webhooks existing before run deploy.sh (image that in a cluster 0.7.0 kubeflow installed, a user wants to run deploy.sh to update katib to latest)

@gaocegege
Copy link
Member

/retest

/hold

for @johnugeorge 's question.

I think it is used to ensure that we will recreate the webhook.

@hougangliu
Copy link
Member Author

/retest

@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

1 similar comment
@hougangliu
Copy link
Member Author

/test kubeflow-katib-presubmit

@gaocegege
Copy link
Member

/retest

@johnugeorge
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot merged commit 68de7a6 into kubeflow:master Nov 29, 2019
@hougangliu hougangliu deleted the remove-webhook branch November 29, 2019 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants