Skip to content

Commit 14e6fff

Browse files
authored
docs: new api docs (#334)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 2a2e490 commit 14e6fff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ the [async version](https://github.com/java-operator-sdk/admission-controller-fr
113113
of 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
}

0 commit comments

Comments
 (0)