mirror of https://github.com/rancher/webhook.git
Remove mutation webhook config for global role bindings
A previous change mistakenly added a mutation webhook configuration for global role bindings. This change removes this configuration because there are no such webhooks.
This commit is contained in:
parent
250d7eb3f1
commit
e0bd65cd73
|
|
@ -145,18 +145,3 @@ var rancherMutationRules = []v1.RuleWithOperations{
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
var rancherAuthMutationRules = []v1.RuleWithOperations{
|
||||
{
|
||||
Operations: []v1.OperationType{
|
||||
v1.Create,
|
||||
v1.Update,
|
||||
},
|
||||
Rule: v1.Rule{
|
||||
APIGroups: []string{"management.cattle.io"},
|
||||
APIVersions: []string{"v3"},
|
||||
Resources: []string{"globalrolebindings"},
|
||||
Scope: &clusterScope,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,14 +164,6 @@ func listenAndServe(ctx context.Context, clients *clients.Clients, handler http.
|
|||
SideEffects: &sideEffectClassNoneOnDryRun,
|
||||
AdmissionReviewVersions: []string{"v1", "v1beta1"},
|
||||
},
|
||||
{
|
||||
Name: "rancherauth.cattle.io",
|
||||
ClientConfig: mutationClientConfig,
|
||||
Rules: rancherAuthMutationRules,
|
||||
FailurePolicy: &failPolicyFail,
|
||||
SideEffects: &sideEffectClassNoneOnDryRun,
|
||||
AdmissionReviewVersions: []string{"v1", "v1beta1"},
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue