Hi
I am using this version of fabric8 to connect to my Kubernetes pods:
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>6.0.0-RC1</version>
</dependency>
I have written the following code, but see that the createOrReplace method I am using is deprecated. Does anyone know what I should use instead?
Resource<io.fabric8.kubernetes.api.model.ConfigMap> configMapResource = client.configMaps().inNamespace(MY_NAMESPACE).withName(MY_POD_NAME);
io.fabric8.kubernetes.api.model.ConfigMap configMap = configMapResource.createOrReplace(new ConfigMapBuilder().
withNewMetadata().withName(MY_CONFIG_NAME).endMetadata().
withData(jsonMap).
build());