Skip to content

Commit 04f2831

Browse files
authored
Merge pull request #1037 from tanjunchen/remove-whitelisted
feat:remove the whitelist word from our codebase
2 parents add0b64 + 6febc12 commit 04f2831

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/envtest/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func readCRDs(basePath string, files []os.FileInfo) ([]*unstructured.Unstructure
340340
crdExts := sets.NewString(".json", ".yaml", ".yml")
341341

342342
for _, file := range files {
343-
// Only parse whitelisted file types
343+
// Only parse allowlisted file types
344344
if !crdExts.Has(filepath.Ext(file.Name())) {
345345
continue
346346
}

pkg/envtest/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func readWebhooks(path string) ([]runtime.Object, []runtime.Object, error) {
358358
var mutHooks []runtime.Object
359359
var valHooks []runtime.Object
360360
for _, file := range files {
361-
// Only parse whitelisted file types
361+
// Only parse allowlisted file types
362362
if !resourceExtensions.Has(filepath.Ext(file.Name())) {
363363
continue
364364
}

0 commit comments

Comments
 (0)