Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:02
    sonarcloud[bot] commented #3601
  • 21:02
    sonarcloud[bot] commented #3601
  • 20:43
    metacosm synchronize #3601
  • 20:43

    metacosm on owner-references

    fix: `addOwnerReference(HasMeta… (compare)

  • 20:36
    metacosm unlabeled #3368
  • 20:27
    metacosm edited #3601
  • 20:15
    metacosm synchronize #3601
  • 20:15

    metacosm on owner-references

    fix: ignore "false" getter feat: extract `sanitizeAndValid… (compare)

  • 18:01
    metacosm synchronize #3601
  • 18:01

    metacosm on owner-references

    fix: shield against potentially… (compare)

  • 15:58
    mortenbirkelund commented #3324
  • 12:24
    sonarcloud[bot] commented #3617
  • 12:24
    sonarcloud[bot] commented #3617
  • 12:05
    shawkins synchronize #3617
  • 10:49
    vi5hnuvardhan starred fabric8io/kubernetes-client
  • 06:08
    rohanKanojia labeled #3637
  • 06:08
    rohanKanojia labeled #3637
  • 06:08
    rohanKanojia opened #3637
Rohan Kumar
@rohanKanojia
@KamalSinghKhanna : Were you able to resolve your issue?
which tests are failing specifically on your machine?
Marc Nuri
@manusa
Starting release process for v5.7.1
Rohan Kumar
@rohanKanojia
:+1:
Marc Nuri
@manusa
Starting release process for v5.7.2
Marc Nuri
@manusa
Starting release process for v5.7.3
G_Ivo
@GregoryIvo
Hi everyone! I'm getting this error: java.lang.NoClassDefFoundError: Could not initialize class io.fabric8.kubernetes.internal.KubernetesDeserializer when trying to connect to a kubeclient, with a uberjar built with mvn package shade:shade. any ideas? I have also included the optional bouncy castle lib, am using version 5.7.3 of the client and I only get there error when running out of my IDE. Thanks in advance, cheers!
Marc Nuri
@manusa
It appears that the client's kubernetes-model-core dependency jar package is not available in your shaded plugin. Review your shade configuration for package inclusion. Maybe you can use this as a reference: https://github.com/fabric8io/kubernetes-client/blob/1f3e85414a5932cd831e87a7825736bea2126252/uberjar/pom.xml#L241
G_Ivo
@GregoryIvo
Thank you Marc, will give this a shot and report back.
Rohan Kumar
@rohanKanojia
@gparimi1 : Hi, Could you please open an issue on Github regarding certificate handling? We need to actually check whether this actually got fixed or not.
Marc Nuri
@manusa
Starting release process for Kubernetes Client 5.8.0
Rohan Kumar
@rohanKanojia
Thanks
Jeff MAURY
@jeffmaury
Any idea how set can set the tcp_nodelay flag for websocket created by the client ?
2 replies
Tristan Tarrant
@tristantarrant

I'm launching an interactive command inside a running pod with:

client.pods().inNamespace(namespace).withName(name)
            .readingInput(System.in)
            .writingOutput(System.out)
            .writingError(System.err)
            .withTTY().exec("...")

but any use of "special" keys (arrows, tab etc) just cause their escaped representation to be printed on the output instead of actually having the desired effect.

SapnaGirdhani1
@SapnaGirdhani1

Hi All, I am not able to build the code taken from here: https://github.com/fabric8io/kubernetes-client/

[INFO] Building Fabric8 :: Kubernetes Model :: Core 5.9-SNAPSHOT
[WARNING] The POM for io.fabric8:kubernetes-model-common:jar:5.9-SNAPSHOT is missing, no dependency information available
[INFO] BUILD FAILURE

However kubernetes-model-common is built and SNAPSHOT jar is created. Please help on the same. Thanks!

Marc Nuri
@manusa
Could you provide more details? environment? command you run? more details on the failure message..
SapnaGirdhani1
@SapnaGirdhani1
sure... I am building this on Windows machine. Command : maven build... which is failing. I have imported all the projects on eclipse and trying to build and run.
Error:
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] ------------------< io.fabric8:kubernetes-model-core >------------------
[INFO] Building Fabric8 :: Kubernetes Model :: Core 5.9-SNAPSHOT
[INFO] -------------------------------[ bundle ]-------------------------------
[WARNING] The POM for io.fabric8:kubernetes-model-common:jar:5.9-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.343 s
[INFO] Finished at: 2021-10-04T15:18:29+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project kubernetes-model-core: Could not resolve dependencies for project io.fabric8:kubernetes-model-core:bundle:5.9-SNAPSHOT: Could not find artifact io.fabric8:kubernetes-model-common:jar:5.9-SNAPSHOT -> [Help 1]
Marc Nuri
@manusa
that nexus staging features message is kind of odd.
I don't know of any "maven build" command, do you mean mvn install or mvn package?
Anyway. Start by compiling the project without tests mvn clean install -DskipTests
SapnaGirdhani1
@SapnaGirdhani1

Yes - I was trying clean install earlier using Maven Build feature of eclipse IDE. As per your suggestion ,tried with mvn clean install -DskipTests still facing the same issue.

[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] --------------------< io.fabric8:openshift-client >---------------------
[INFO] Building Fabric8 :: Openshift :: Java Client 5.9-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for io.fabric8:kubernetes-client:jar:5.9-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.fabric8:openshift-model:jar:5.9-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.fabric8:openshift-model-clusterautoscaling:jar:5.9-SNAPSHOT is missing, no dependency information available

I've one more doubt - I've taken code from - https://github.com/fabric8io/kubernetes-client/
It has Kubernetes example code but NOT the OpenShift. For OpenShift client it just has Interfaces NOT the implementation samples. From where I can get samples on OpenShift APIs.
SapnaGirdhani1
@SapnaGirdhani1
kubernetes-model-core is not getting clean.
import io.fabric8.kubernetes.api.model.KubernetesListBuilder; -> this import can not be resolved. Project is not bale to find it.
SapnaGirdhani1
@SapnaGirdhani1
Team, I am looking for help for the code - https://github.com/fabric8io/kubernetes-client/
I am not able to compile and build the code. As it shows error because of some missing files. For example, there is an import statement in io.fabric8.kubernetes.client.Config class : import io.fabric8.kubernetes.api.model.ConfigBuilder;
And this class ( ConfigBuilder ) is not present anywhere in the code.
Due to these challenges in latest branch , I tried with 5.7.3 code as well , but still not able to compile the code.
Please help me. Thanks!
SapnaGirdhani1
@SapnaGirdhani1

Also there are few classes which shows compilation issues because of unimplemented interface methods. For example :

io.fabric8.kubernetes.api.model.GenericKubernetesResource class has missing "getMetadata()"

Is there anyone who has compiled and build this code ? I need some help on the same. Thanks!

5 replies
ho-yasla
@ho-yasla
hi
Do you have a question
ho-yasla
@ho-yasla
코드 사용
yaml = SerializationUtils.dumpAsYaml(pod);
Current output value.
metadata:
  annotations:
    k8s.v1.cni.cncf.io/network-status: "[{\n    \"name\": \"\",\n    \"interface\"\
      : \"eth0\",\n    \"ips\": [\n        \"11.111.1.11\"\n    ],\n    \"default\"\
      : true,\n    \"dns\": {}\n}]"
Expected output value
metadata:
  annotations: |-
      [{
          "name": "",
          "interface": "eth0",
          "ips": [
              "11.111.1.11"
          ],
          "default": true,
          "dns": {}
      }]
ho-yasla
@ho-yasla
Is there any way to get the expected output with a Jackson serializer?
ho-yasla
@ho-yasla
I solved the problem.
David Calap
@dcalap

Hi people, I want to create a KubernetesMockServer and test some scenarios for retry things.

The point is I want to create a configmap and after that, mock the first request to receive a 500 and after that receive a 200.

The issue is that I cannot create a configmap with a KubernetesMockServer because of the CRUD not enabled, and if I create it with KubernetesServer(false, true) then, I cannot create a expect in my @Test with the (KubernetesServer)server.expect for the 500 first request (because server.getMockServer() returns a MockWebServer, not a KubernetesMockServer which would be the expected )... Any clue?

4 replies
Marc Nuri
@manusa
Starting release process for Kubernetes Client 5.9.0
Hannes Hofmann
@hanneshofmann
Hi, we are using Kubernetes Client 4.9.2 (with Kubernetes 1.20.5). We are experiencing that our event watcher is not notified in very rare situations. I already checked the closed and open issues in GitHub but I couldn't find anything related. Are you guys aware about this kind of issue? The only thing I know is that the missing events are in etcd and are available when using the Kubernetes API directly (e.g. with kubectl/curl).
Steven Hawkins
@shawkins
@hanneshofmann the only situation I'm aware of is a kubernetes bug with Service watches: kubernetes/kubernetes#102464
3 replies
David Calap
@dcalap
Is there a way to keep the same port for kubernetes mock server? Looks like is changing the port on every test and we are facing issues because of that.
David Calap
@dcalap
this newwill override the one created with the EnableKubernetesMockClientannotation?
because we are using that in our tests
Marc Nuri
@manusa
Yes, the annotation is not compatible with that.
We are working on some improvements for the MockWebserver. Maybe you can create an issue to improve the JUnit5 annotations too so that you can select the port.
(I think I wasn't clear, don't use the annotation if you manually start the mockserver as in the provided example.)
David Calap
@dcalap
Sure thing, thanks for the info!
Another question. we are using the kubernetesMock in different test cases and we need to check the getLastRequest() but looks like once is conusmed in one of the test cases the next time we try to get the body is blocked forever, like if the buffer is not there anymore, do you know what could be?
Marc Nuri
@manusa
Yes, this is the current behavior. It's part of the current set of improvements we're working on