Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Delete knative webhooks during KF uninstalling #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akrava
Copy link

@akrava akrava commented Nov 10, 2020

Fixes #435.

I propose to delete knative webhooks, which causes an error after reinstall, during Kubeflow deletion process.

@google-cla
Copy link

google-cla bot commented Nov 10, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akrava
To complete the pull request process, please assign adrian555 after the PR has been reviewed.
You can assign the PR to them by writing /assign @adrian555 in a comment when ready.

The full list of commands accepted by this bot can be found 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

@aws-kf-ci-bot
Copy link

Hi @akrava. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@akrava
Copy link
Author

akrava commented Nov 10, 2020

@googlebot I signed it!

@Jeffwan
Copy link
Member

Jeffwan commented Nov 10, 2020

/cc @Tomcli @adrian555 @shawnzhu

@Jeffwan
Copy link
Member

Jeffwan commented Nov 13, 2020

I tried to optimize deletion order and components in this PR. #386

Can you check is there's something you can reuse?

@akrava
Copy link
Author

akrava commented Nov 13, 2020

Hi @Jeffwan! Thanks for asking. Unfortunately I cannot reuse anything from your PR due situation described in issue #435, which I'm trying to solve in my PR, is a little bit different. If I understand correctly, PR #386 optimize deletion in case if user deletes KF using client tool kfctl, due to your code is using in Delete method, which is called from 'kfctl delete ...':

// Delete is called from 'kfctl delete ...'. Will delete all resources deployed from the Apply method
func (kustomize *kustomize) Delete(resources kftypesv3.ResourceEnum) error {

But my situation differ: I'm using operator and I delete KF resources by kubectl delete -f kfdef/kfctl_k8s_istio.v1.1.0.yaml and then delete operator itself. Generally all KF resources have got ownerReferences definition in metadata so it is deleting simultaneously with KF, but unfortunately knative remove ownerReferences from some webhooks after startup. This why I proposed such workaround.

@Jeffwan
Copy link
Member

Jeffwan commented Nov 15, 2020

@akrava sounds good. Let's wait for folks who working on operator from @kubeflow/wg-deployment-leads to review your change. I am not familiar with controller logic

@Jeffwan
Copy link
Member

Jeffwan commented Nov 15, 2020

/assign @kubeflow/wg-deployment-leads
/cc @Tomcli @shawnzhu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KF operator fails with webhook error after reinstall
4 participants