Skip to content

Commit 636eb58

Browse files
committed
chore: renaming vars named k8sClient to kubernetsClient
1 parent b412821 commit 636eb58

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ConfiguredController.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public class ConfiguredController<R extends CustomResource<?, ?>> implements Res
2626
Closeable {
2727
private final ResourceController<R> controller;
2828
private final ControllerConfiguration<R> configuration;
29-
private final KubernetesClient k8sClient;
29+
private final KubernetesClient kubernetesClient;
3030
private EventSourceManager eventSourceManager;
3131

3232
public ConfiguredController(ResourceController<R> controller,
3333
ControllerConfiguration<R> configuration,
34-
KubernetesClient k8sClient) {
34+
KubernetesClient kubernetesClient) {
3535
this.controller = controller;
3636
this.configuration = configuration;
37-
this.k8sClient = k8sClient;
37+
this.kubernetesClient = kubernetesClient;
3838
}
3939

4040
@Override
@@ -140,11 +140,11 @@ public ControllerConfiguration<R> getConfiguration() {
140140
}
141141

142142
public KubernetesClient getClient() {
143-
return k8sClient;
143+
return kubernetesClient;
144144
}
145145

146146
public MixedOperation<R, KubernetesResourceList<R>, Resource<R>> getCRClient() {
147-
return k8sClient.resources(configuration.getCustomResourceClass());
147+
return kubernetesClient.resources(configuration.getCustomResourceClass());
148148
}
149149

150150
/**
@@ -164,7 +164,8 @@ public void start() throws OperatorException {
164164
// check that the custom resource is known by the cluster if configured that way
165165
final CustomResourceDefinition crd; // todo: check proper CRD spec version based on config
166166
if (configuration.getConfigurationService().checkCRDAndValidateLocalModel()) {
167-
crd = k8sClient.apiextensions().v1().customResourceDefinitions().withName(crdName).get();
167+
crd =
168+
kubernetesClient.apiextensions().v1().customResourceDefinitions().withName(crdName).get();
168169
if (crd == null) {
169170
throwMissingCRDException(crdName, specVersion, controllerName);
170171
}

0 commit comments

Comments
 (0)