File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Defining a mutation or validation controller is as simple as:
4242 @Singleton
4343 @Named (VALIDATING_CONTROLLER )
4444 public AdmissionController<Ingress > validatingController() {
45- return new AdmissionController<> ((resource, operation) - > {
45+ return new AdmissionController<> ((resource, oldResource, operation) - > {
4646 if (resource. getMetadata(). getLabels() == null
4747 || resource. getMetadata(). getLabels(). get(APP_NAME_LABEL_KEY ) == null ) {
4848 throw new NotAllowedException (" Missing label: " + APP_NAME_LABEL_KEY );
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ the [async version](https://github.com/java-operator-sdk/admission-controller-fr
113113of admission controller implementation.)
114114
115115` ` ` java
116- new AdmissionController<>((resource,operation) -> {
116+ new AdmissionController<>((resource, oldResource, operation) -> {
117117 if(resource.getMetadata().getLabels() == null || resource.getMetadata().getLabels().get(APP_NAME_LABEL_KEY) == null){
118118 throw new NotAllowedException("Missing label: "+APP_NAME_LABEL_KEY);
119119 }
You can’t perform that action at this time.
0 commit comments