-
Notifications
You must be signed in to change notification settings - Fork 382
Conversation
All tests are passing now, but the helm chart install times out. Probably some flags were changed and we need to update a helm chart, will check. |
Had to copy-paste some code from |
Temporarily disabled webhook admission plugins to localize the issue. |
The build succeeds now, but need to look whether disabling default admission plugins causes a regression (i.e. missing support for |
The issue with webhook admission controllers is caused by RBAC permissions:
We need to grant additional permissions to |
Travis build times out (the limit is 50 minutes). We might have to fix the problem with |
I'll give it a rebase on the commit with faster clients. #1929 |
well, the rebase made it faster, but it's now 47 minutes. |
LGTM, thanks for doing the work |
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, I think we should merge and do any other changes in follow ups, such as 1.10.1.
@@ -138,6 +138,7 @@ node { | |||
} | |||
} catch (Exception e) { | |||
echo 'Run failed.' | |||
print e |
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.
still need this?
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["admissionregistration.k8s.io"] | ||
resources: ["mutatingwebhookconfigurations"] | ||
verbs: ["get", "list", "watch"] |
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.
yay rbac
@@ -161,20 +164,46 @@ func buildGenericConfig(s *ServiceCatalogServerOptions) (*genericapiserver.Recom | |||
} | |||
|
|||
// buildAdmission constructs the admission chain | |||
func buildAdmission(s *ServiceCatalogServerOptions, | |||
// TODO nilebox: Switch to RecommendedOptions and use method (a *AdmissionOptions) ApplyTo |
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.
follow up to solve #1851, methinks
// enabledPluginNames makes use of RecommendedPluginOrder, DefaultOffPlugins, | ||
// EnablePlugins, DisablePlugins fields | ||
// to prepare a list of ordered plugin names that are enabled. | ||
// TODO nilebox: remove this method once switched to RecommendedOptions |
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.
same #1861 I think
// methods were removed. | ||
// Remove the resource loop after we make sure that we don't have | ||
// overrides for resources in our config. | ||
return nil, fmt.Errorf("resource overrides are not supported anymore: %v", key) |
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.
good error, no idea what any of this code is for.
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and | |||
limitations under the License. | |||
*/ | |||
|
|||
// Code generated by client-gen. DO NOT EDIT. |
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.
not sure anyone would actually see these comments, but code gen, whatever.
@@ -39,7 +41,7 @@ func init() { | |||
// | |||
// import ( | |||
// "k8s.io/client-go/kubernetes" | |||
// clientsetscheme "k8s.io/client-go/kuberentes/scheme" | |||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme" |
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.
wut
@@ -14,11 +14,13 @@ See the License for the specific language governing permissions and | |||
limitations under the License. | |||
*/ | |||
|
|||
// This file was automatically generated by informer-gen | |||
// Code generated by informer-gen. DO NOT EDIT. |
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.
at least it's consistent now?
…ions.ApplyTo method invoked by RecommendedOptions) Fix RBAC for admission webhooks
rebased to pick up fixes in #1951 |
As usual, review individual commits and skip "Update vendor" commits.