Skip to content

Commit

Permalink
Try allowing unknown fields, just to check theory
Browse files Browse the repository at this point in the history
  • Loading branch information
julz committed Aug 16, 2021
1 parent b472472 commit 3c72a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/domain-mapping-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newDefaultingAdmissionController(ctx context.Context, cmw configmap.Watcher
store.ToContext,

// Whether to disallow unknown fields.
true,
false,
)
}

Expand All @@ -84,7 +84,7 @@ func newValidatingAdmissionController(ctx context.Context, cmw configmap.Watcher
store.ToContext,

// Whether to disallow unknown fields.
true,
false,
)
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func newDefaultingAdmissionController(ctx context.Context, cmw configmap.Watcher
store.ToContext,

// Whether to disallow unknown fields.
true,
false,
)
}

Expand All @@ -119,7 +119,7 @@ func newValidationAdmissionController(ctx context.Context, cmw configmap.Watcher
store.ToContext,

// Whether to disallow unknown fields.
true,
false,

// Extra validating callbacks to be applied to resources.
callbacks,
Expand Down

0 comments on commit 3c72a7b

Please sign in to comment.