mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 03:15:05 +00:00
fix: remove dead code (#6380)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
d90f18f4ad
commit
991d51b03e
1 changed files with 0 additions and 12 deletions
|
@ -145,8 +145,6 @@ type Configuration interface {
|
|||
GetExcludedUsernames() []string
|
||||
// GetGenerateSuccessEvents return if should generate success events
|
||||
GetGenerateSuccessEvents() bool
|
||||
// FilterNamespaces filters exclude namespace
|
||||
FilterNamespaces(namespaces []string) []string
|
||||
// GetWebhooks returns the webhook configs
|
||||
GetWebhooks() []WebhookConfig
|
||||
// Load loads configuration from a configmap
|
||||
|
@ -235,16 +233,6 @@ func (cd *configuration) GetGenerateSuccessEvents() bool {
|
|||
return cd.generateSuccessEvents
|
||||
}
|
||||
|
||||
func (cd *configuration) FilterNamespaces(namespaces []string) []string {
|
||||
var results []string
|
||||
for _, ns := range namespaces {
|
||||
if !cd.ToFilter("", ns, "") {
|
||||
results = append(results, ns)
|
||||
}
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
||||
func (cd *configuration) GetWebhooks() []WebhookConfig {
|
||||
cd.mux.RLock()
|
||||
defer cd.mux.RUnlock()
|
||||
|
|
Loading…
Add table
Reference in a new issue