Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:40
  • 05:42
    justinlinsong starred fabric8io/kubernetes-client
  • May 23 17:11

    manusa on master

    test: document SerialExecutor e… (compare)

  • May 23 17:11
    manusa closed #4161
  • May 23 14:50
    sonarcloud[bot] commented #4165
  • May 23 14:25
    shawkins synchronize #4165
  • May 23 14:21
    shawkins synchronize #4165
  • May 23 14:19
    shawkins labeled #4165
  • May 23 14:18
    shawkins review_requested #4165
  • May 23 14:18
    shawkins review_requested #4165
  • May 23 14:18
    shawkins review_requested #4165
  • May 23 14:18
    shawkins opened #4165
  • May 23 14:08
    sonarcloud[bot] commented #4161
  • May 23 14:08
    sonarcloud[bot] commented #4161
  • May 23 13:45
    manusa milestoned #4161
  • May 23 13:43
    manusa closed #3625
  • May 23 13:43

    manusa on master

    fix #3625: updating the default… fix #3625: committing the modif… fix #3625: test corrections rel… (compare)

  • May 23 13:43
    manusa closed #4160
  • May 23 13:43
    manusa milestoned #4160
  • May 23 13:38
    manusa synchronize #4161
Jakub Cechacek
@jcechace
Yes but we should strive for general usability :)

@rohanKanojia
btw did you ever see this? Without touching my cluster the client starting spitting this at me

Caused by: io.fabric8.kubernetes.client.WatcherException: too old resource version: 48308901 (48321468)

5.2.1 client

Jakub Cechacek
@jcechace
Ok I supsect some micro release update in the cluster broke something. Updating to 5.5 fixed it
Rohan Kumar
@rohanKanojia
Hmm, yes. I have seen this
If you use SharedIndexInformers, client would automatically handle 410
Jakub Cechacek
@jcechace
strangely in. my case this was happening across multiple executions so no watch should have persisted .. nevertheless update fixed and I want to thank you for removing InterruptedException from waits :)
Much cleaner
Rohan Kumar
@rohanKanojia
no need to thank me, @shawkins improved this
Jonathan Block
@blockjon
(newbie question) I'm learning Kotlin and when I use this kubernetes-client in a coroutine, my program hangs and I'm not sure why. I posted some details here fabric8io/kubernetes-client#3382 I wouldn't be surprised if the answer is obvious but this is my 3rd day of Kotlin so I'm currently stumped
Rohan Kumar
@rohanKanojia
is your kotlin coroutine doing something else?
I don't know kotlin but I think it might be okhttp
Jakub Cechacek
@jcechace
Migth want to wrap the call in runBlocking
Jakub Cechacek
@jcechace
@rohanKanojia is there a way to use the client for the equivalent of oc apply -f <folder or file>?
Rohan Kumar
@rohanKanojia
could you please try client.load(getClass().getResourceAsStream("/file.yml")).inNamespace("foo").createOrReplace()
this won't work if there are custom resources present in file
Jakub Cechacek
@jcechace
Will give it a try, it's for future work. I'm just planning some improvements for our project
will it work with multiple resources in the same file?
Rohan Kumar
@rohanKanojia
I think so
Jonathan Block
@blockjon
@rohanKanojia I was able to determine is that the coroutine hangs for exactly 5 minutes when I use this kubernetes-client library. Using a custom config and okHttpClient didnt seem to have an effect.
Jonathan Block
@blockjon
@rohanKanojia Mystery solved "Clear the connection pool with evictAll(). Note that the connection pool’s daemon thread may not exit immediately." - https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/#shutdown-isnt-necessary
Rohan Kumar
@rohanKanojia
cool
Do you think we can add a FAQ regarding this to https://github.com/fabric8io/kubernetes-client/blob/master/doc/FAQ.md ?
Marc Nuri
@manusa
Starting release process for v5.7.0
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?
Mohd Uzair
@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