File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
operator-framework/src/main/java/io/javaoperatorsdk/operator/processing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .processing ;
2
2
3
- import io .fabric8 .kubernetes .client . CustomResource ;
3
+ import io .fabric8 .kubernetes .api . model . HasMetadata ;
4
4
import io .fabric8 .kubernetes .client .Watcher ;
5
5
import io .javaoperatorsdk .operator .processing .event .Event ;
6
6
import io .javaoperatorsdk .operator .processing .event .internal .CustomResourceEvent ;
9
9
10
10
public class ProcessingUtils {
11
11
12
- public static String getUID (CustomResource customResource ) {
12
+ public static String getUID (HasMetadata customResource ) {
13
13
return customResource .getMetadata ().getUid ();
14
14
}
15
15
16
- public static String getVersion (CustomResource customResource ) {
16
+ public static String getVersion (HasMetadata customResource ) {
17
17
return customResource .getMetadata ().getResourceVersion ();
18
18
}
19
19
You can’t perform that action at this time.
0 commit comments