Skip to content

Commit

Permalink
chore (deps) : Update Fabric8 Kubernetes Client to v6.9.1
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
  • Loading branch information
rohanKanojia committed Oct 27, 2023
1 parent 07f76a0 commit 3116667
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import io.fabric8.demo.crd.v1alpha1.Book;
import io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinition;
import io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinitionVersion;
import io.fabric8.kubernetes.client.utils.Serialization;
import io.fabric8.kubernetes.client.utils.KubernetesSerialization;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand All @@ -15,9 +15,10 @@ class BookGeneratedYamlDeserializeTest {
void generatedManifestShouldBeDeserializable() {
// Given
Book book = new Book();
KubernetesSerialization kubernetesSerialization = new KubernetesSerialization();

// When
CustomResourceDefinition crd = Serialization.unmarshal(getClass().getResourceAsStream("/META-INF/fabric8/books.testing.fabric8.io-v1.yml"));
CustomResourceDefinition crd = kubernetesSerialization.unmarshal(getClass().getResourceAsStream("/META-INF/fabric8/books.testing.fabric8.io-v1.yml"));

// Then
assertNotNull(crd);
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-client-demo-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M7</maven-failsafe-plugin.version>
<junit.version>5.9.1</junit.version>
<fabric8.version>6.9.0</fabric8.version>
<fabric8.version>6.9.1</fabric8.version>
</properties>

<modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void addToGroup(Pod newPod) {
newLabels.putAll(matchLabels);

newPod.getMetadata().setLabels(newLabels);
kubernetesClient.pods().resource(newPod).createOrReplace();
kubernetesClient.pods().resource(newPod).serverSideApply();
}

public List<StatusDetails> delete() {
Expand Down

0 comments on commit 3116667

Please sign in to comment.