Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:21
    wangyulong4515 starred fabric8io/kubernetes-client
  • Dec 01 16:42
    speedfl commented #3627
  • Dec 01 16:37
    speedfl commented #3627
  • Dec 01 16:35
    speedfl commented #3627
  • Dec 01 16:34
    speedfl closed #3627
  • Dec 01 15:55
    speedfl opened #3627
  • Dec 01 14:38
    Muhammederendemir starred fabric8io/kubernetes-client
  • Dec 01 09:37
    SaturnWorld opened #3626
  • Dec 01 08:05
    mertcakmak2 starred fabric8io/kubernetes-client
  • Dec 01 07:48
    manusa labeled #3505
  • Dec 01 02:54
  • Dec 01 02:53
  • Nov 30 21:15
    shawkins commented #3624
  • Nov 30 19:55
    shawkins opened #3625
  • Nov 30 18:44
    shawkins commented #3616
  • Nov 30 18:02
    shawkins commented #3617
  • Nov 30 17:12
    stale[bot] closed #3425
  • Nov 30 16:37
    metacosm review_requested #3616
  • Nov 30 16:04
    manusa review_requested #3601
  • Nov 30 16:03
    manusa review_requested #3601
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
With the current behavior, you need to persist that request yourself.
David Calap
@dcalap
what do you mean with persist?
Marc Nuri
@manusa
save in a local variable, etc.
David Calap
@dcalap
cool, thx!
Marc Nuri
@manusa
Basically you can just get the last request once, given the way it's implemented. If you need to assert several things on that request, then you should persist it.
If you are performing latter operations, then you will need to refactor the test.
Once the current PR refactor is ready and released, then it won't be necessary.
David Calap
@dcalap
any ETA of the new release?
Marc Nuri
@manusa
For the Mock Server we'll try to make it to 5.10
but there's still work to do
Hannes Hofmann
@hanneshofmann
Hi! While upgrading from kubernetes-client 4.9.2 to 5.9.0 (in an OSGi-based application), we are facing fabric8io/kubernetes-client#3500. Are there any idea how to address this? I was thinking about exporting the specific package but this seems to me wrong as it's named "internal". :)
Marc Nuri
@manusa
We haven't had time to investigate this yet
We don't really understand what might be going on, since there should be an integration test verifying that OSGi works
Hannes Hofmann
@hanneshofmann
I see, thanks for your response. I might tinker around a bit and might leave a comment in the ticket, if I find something interesting.
Marc Nuri
@manusa
That would be good, thanks.
Hannes Hofmann
@hanneshofmann
I am not sure what the integration tests OSGi do, but I suspect the ClassNotFoundException is only thrown at runtime (not at bundle wiring) when certain methods of the KubernetesClient are used. As said above, to avoid noise here, I will add findings in the ticket.
8 replies
heesuk-ahn
@heesuk-ahn

Hi all,

In fabric 8 kubernetes client, when Reflector receives a watch event, it seems to pass the event to the SyncerStore.
In client-go, it seems to be put in a queue called DeltaFIFO.

Can I understand that the abstraction is different without DeltaFIFO in fabric 8 kubernetes client?

3 replies