Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/envtest/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func readCRDs(basePath string, files []os.FileInfo) ([]*unstructured.Unstructure
crdExts := sets.NewString(".json", ".yaml", ".yml")

for _, file := range files {
// Only parse whitelisted file types
// Only parse allowlisted file types
if !crdExts.Has(filepath.Ext(file.Name())) {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/envtest/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func readWebhooks(path string) ([]runtime.Object, []runtime.Object, error) {
var mutHooks []runtime.Object
var valHooks []runtime.Object
for _, file := range files {
// Only parse whitelisted file types
// Only parse allowlisted file types
if !resourceExtensions.Has(filepath.Ext(file.Name())) {
continue
}
Expand Down