Skip to content

Commit 21fe55a

Browse files
committed
Ref #28363: update k8s client
1 parent 4741f1e commit 21fe55a

7 files changed

Lines changed: 7 additions & 8 deletions

File tree

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<maven.compiler.source>11</maven.compiler.source>
1717
<maven.compiler.release>11</maven.compiler.release>
1818
<maven.compiler.target>11</maven.compiler.target>
19-
<version.fabric8.client>5.12.2</version.fabric8.client>
19+
<version.fabric8.client>6.1.1</version.fabric8.client>
2020
<kotlin.version>1.5.20</kotlin.version>
2121
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
2222
<junit.jupiter.version>5.6.0</junit.jupiter.version>
@@ -290,4 +290,3 @@
290290

291291

292292
</project>
293-

src/main/kotlin/eu/openanalytics/shinyproxyoperator/components/ConfigMapFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ConfigMapFactory(private val kubeClient: KubernetesClient) {
4949
.withKind("ShinyProxy")
5050
.withApiVersion("openanalytics.eu/v1")
5151
.withName(shinyProxy.metadata.name)
52-
.withNewUid(shinyProxy.metadata.uid)
52+
.withUid(shinyProxy.metadata.uid)
5353
.endOwnerReference()
5454
.endMetadata()
5555
.addToData("application.yml", shinyProxy.specAsYaml)

src/main/kotlin/eu/openanalytics/shinyproxyoperator/components/ReplicaSetFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ReplicaSetFactory(private val kubeClient: KubernetesClient) {
4545
.withKind("ShinyProxy")
4646
.withApiVersion("openanalytics.eu/v1")
4747
.withName(shinyProxy.metadata.name)
48-
.withNewUid(shinyProxy.metadata.uid)
48+
.withUid(shinyProxy.metadata.uid)
4949
.endOwnerReference()
5050
.endMetadata()
5151
.withNewSpec()

src/main/kotlin/eu/openanalytics/shinyproxyoperator/components/ServiceFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ServiceFactory(private val kubeClient: KubernetesClient) {
4444
.withKind("ShinyProxy")
4545
.withApiVersion("openanalytics.eu/v1")
4646
.withName(shinyProxy.metadata.name)
47-
.withNewUid(shinyProxy.metadata.uid)
47+
.withUid(shinyProxy.metadata.uid)
4848
.endOwnerReference()
4949
.endMetadata()
5050
.withNewSpec()

src/main/kotlin/eu/openanalytics/shinyproxyoperator/ingress/skipper/IngressController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import io.fabric8.kubernetes.client.dsl.MixedOperation
3636
import io.fabric8.kubernetes.client.dsl.Resource
3737
import io.fabric8.kubernetes.client.informers.cache.Indexer
3838
import io.fabric8.kubernetes.client.informers.cache.Lister
39-
import io.fabric8.kubernetes.client.internal.readiness.Readiness
39+
import io.fabric8.kubernetes.client.readiness.Readiness
4040
import kotlinx.coroutines.channels.SendChannel
4141
import mu.KotlinLogging
4242

src/main/kotlin/eu/openanalytics/shinyproxyoperator/ingress/skipper/IngressFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class IngressFactory(private val kubeClient: KubernetesClient) {
5959
.withKind("ReplicaSet")
6060
.withApiVersion("apps/v1")
6161
.withName(ResourceNameFactory.createNameForReplicaSet(shinyProxy, shinyProxyInstance))
62-
.withNewUid(replicaSet.metadata.uid)
62+
.withUid(replicaSet.metadata.uid)
6363
.endOwnerReference()
6464
.withAnnotations<String, String>(routeAnnotations)
6565
.endMetadata()

src/test/kotlin/eu/openanalytics/shinyproxyoperator/MainIntegrationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import eu.openanalytics.shinyproxyoperator.helpers.ShinyProxyTestInstance
2929
import eu.openanalytics.shinyproxyoperator.helpers.isStartupProbesSupported
3030
import io.fabric8.kubernetes.api.model.IntOrString
3131
import io.fabric8.kubernetes.client.NamespacedKubernetesClient
32-
import io.fabric8.kubernetes.client.internal.readiness.Readiness
32+
import io.fabric8.kubernetes.client.readiness.Readiness
3333
import kotlinx.coroutines.GlobalScope
3434
import kotlinx.coroutines.delay
3535
import kotlinx.coroutines.launch

0 commit comments

Comments
 (0)