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
Disable webhook-mode for metallb #2560
Conversation
9143607
to
64888a3
Compare
64888a3
to
85bbc6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/cc @RainbowMango
85bbc6c
to
d6f3364
Compare
hack/post-run-e2e.sh
Outdated
curl https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml -k | \ | ||
sed '0,/args:/s//args:\n - --webhook-mode=disabled/' | \ | ||
sed '/apiVersion: admissionregistration/,$d' | \ | ||
kubectl --context="${HOST_CLUSTER_NAME}" delete -f - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shall we sed it when deleting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
command sed '/apiVersion: admissionregistration/,$d'
will delete one ValidatingWebhookConfiguration
, if not delete it before, kubectl delete
will have erros:
jw@ecs-3fa1 [04:23:37 PM] [~]
-> % kubectl delete -f https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml
namespace "metallb-system" deleted
customresourcedefinition.apiextensions.k8s.io "addresspools.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "bfdprofiles.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "bgpadvertisements.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "bgppeers.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "communities.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "ipaddresspools.metallb.io" deleted
customresourcedefinition.apiextensions.k8s.io "l2advertisements.metallb.io" deleted
serviceaccount "controller" deleted
serviceaccount "speaker" deleted
role.rbac.authorization.k8s.io "controller" deleted
role.rbac.authorization.k8s.io "pod-lister" deleted
clusterrole.rbac.authorization.k8s.io "metallb-system:controller" deleted
clusterrole.rbac.authorization.k8s.io "metallb-system:speaker" deleted
rolebinding.rbac.authorization.k8s.io "controller" deleted
rolebinding.rbac.authorization.k8s.io "pod-lister" deleted
clusterrolebinding.rbac.authorization.k8s.io "metallb-system:controller" deleted
clusterrolebinding.rbac.authorization.k8s.io "metallb-system:speaker" deleted
secret "webhook-server-cert" deleted
service "webhook-service" deleted
deployment.apps "controller" deleted
daemonset.apps "speaker" deleted
Error from server (NotFound): error when deleting "https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml": validatingwebhookconfigurations.admissionregistration.k8s.io "metallb-webhook-configuration" not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ikaven1024 Do you want to say, why not use --ignore-not-found
?
$ kubectl delete --help
--ignore-not-found=false:
Treat "resource not found" as a successful delete. Defaults to "true" when --all is
specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
retriggered the tests. |
Signed-off-by: jwcesign <jiangwei115@huawei.com>
d6f3364
to
abf026a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
Signed-off-by: jwcesign jiangwei115@huawei.com
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
There is a bug in metallb: metallb/metallb#1597
Disable the webhook-mode, also it has not effects for our test case.
Which issue(s) this PR fixes:
There is a bug in metallb: metallb/metallb#1597
Disable the webhook-mode, also it has not effects for our test case.
Special notes for your reviewer:
none
Does this PR introduce a user-facing change?: