Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:13
    shawkins commented #3616
  • 17:12
    sonarcloud[bot] commented #3616
  • 17:12
    sonarcloud[bot] commented #3616
  • 16:52
    shawkins synchronize #3616
  • 15:17
    Damans227 synchronize #3542
  • 13:37
    shawkins commented #3619
  • 13:16
    shawkins commented #3462
  • 10:05
    CWL-1688 opened #3622
  • Nov 27 21:50
  • Nov 27 12:40
    himanshumps opened #3621
  • Nov 27 09:09
    stale[bot] labeled #3355
  • Nov 27 09:09
    stale[bot] commented #3355
  • Nov 26 19:50
    sonarcloud[bot] commented #18
  • Nov 26 19:46
    sonarcloud[bot] commented #17
  • Nov 26 19:32
    sonarcloud[bot] commented #16
  • Nov 26 19:29
    sonarcloud[bot] commented #15
  • Nov 26 18:57
    sonarcloud[bot] commented #12
  • Nov 26 18:53
    sonarcloud[bot] commented #11
  • Nov 26 18:49
    sonarcloud[bot] commented #10
Rohan Kumar
@rohanKanojia
:+1:
vamseeds
@vamseeds

Hi Guys!
I see io.fabric8.kubernetes.client.dsl.internal.core.v1.PodTemplateOperationsImpl has been removed in v5.7.0 and I don't see any info relating to this removal in changelog .
is io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperationsImpl replacement for above class ?

my previous usage (v5.4.0):

new PodTemplateOperationsImpl(
                k8sClient.getHttpClient(),
                k8sClient.getConfiguration());

current usage(v5.7.0):

new HasMetadataOperationsImpl<>(
                k8sClient.getHttpClient(),
                k8sClient.getConfiguration(), ResourceDefinitionContext.fromResourceType(PodTemplate.class), PodTemplate.class, PodTemplateList.class);
Kamal khanna
@KamalSinghKhanna
hey! new here
I am trying to run mvn clean install but it is showing the error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project kubernetes-client: There are test failures.
[ERROR]
[ERROR] Please refer to /home/kamal/Desktop/Java-project/kubernetes-client/kubernetes-client/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :kubernetes-client
how to fix it?
MUzairS15
@MUzairS15
I think it's related to dependencies, could you tell more at which specific part build fail?
Try again with all needed dependencies, should work I think.
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.