Skip to content

Commit

Permalink
chore (deps) : Update fabric8 K8s Client to v6.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Jul 27, 2023
1 parent 7557fe6 commit 4be79ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<version.fabric8.client>6.7.2</version.fabric8.client>
<version.fabric8.client>6.8.0</version.fabric8.client>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ protected void reconcile(Foo foo) {
kubernetesClient.apps().deployments()
.inNamespace(foo.getMetadata().getNamespace())
.resource(deployment)
.replace();
.update();
}

// Finally, we update the status block of the Foo resource to reflect the
Expand Down Expand Up @@ -220,7 +220,7 @@ private void updateAvailableReplicasInFooStatus(Foo foo, int replicas) {
// we must use Update instead of UpdateStatus to update the Status block of the Foo resource.
// UpdateStatus will not allow changes to the Spec of the resource,
// which is ideal for ensuring nothing other than resource status has been updated.
fooClient.inNamespace(foo.getMetadata().getNamespace()).resource(fooClone).replaceStatus();
fooClient.inNamespace(foo.getMetadata().getNamespace()).resource(fooClone).updateStatus();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SampleControllerTest {

@Test
@DisplayName("Should create deployment for with respect to a specified Foo")
void testReconcile() throws InterruptedException, JsonProcessingException {
void testReconcile() throws InterruptedException {
// Given
String testNamespace = "ns1";
Foo testFoo = getFoo("example-foo", testNamespace, "0800cff3-9d80-11ea-8973-0e13a02d8ebd", "example-foo-deploy");
Expand Down

0 comments on commit 4be79ee

Please sign in to comment.