bouskaJ commented on issue #1075: Enhance kubeconfig loading
URL: https://github.com/apache/camel-k/pull/1075#issuecomment-557548462
 
 
   Hi @nicolaferraro. I have a special case. I am in OpenShift container and I 
would like to run Camel-K against different OpenShift. So I am "in Cluster" but 
I would like to use "out of cluster" initialization.
   
   What I did.
   1) I have set KUBECONF ENV
    -> `shouldUseContainerMode` returns false 
(https://github.com/apache/camel-k/blob/21eb85be58b3bb8807180bc24892c17adb7b12df/pkg/client/client.go#L207)
    -> then I continue to 
https://github.com/apache/camel-k/blob/21eb85be58b3bb8807180bc24892c17adb7b12df/pkg/client/client.go#L145
   and here we are:
   ```
   panic: user: unknown userid 1102770000
   
   goroutine 1 [running]:
   github.com/apache/camel-k/pkg/client.initialize(0x0, 0x0)
        /home/jenkins/workspace/fuse-camel-k-install/pkg/client/client.go:147 
+0x123
   github.com/apache/camel-k/pkg/client.NewOutOfClusterClient(0x0, 0x0, 
0x1ad7100, 0x15, 0xc00012c58b, 0x3)
        /home/jenkins/workspace/fuse-camel-k-install/pkg/client/client.go:74 
+0x35
   github.com/apache/camel-k/e2e.newTestClient(...)
        /home/jenkins/workspace/fuse-camel-k-install/e2e/test_support.go:82
   github.com/apache/camel-k/e2e.init.1()
        /home/jenkins/workspace/fuse-camel-k-install/e2e/test_support.go:72 
+0xfd
   FAIL github.com/apache/camel-k/e2e   0.268s
   FAIL
   ```
   
   Maybe 
https://github.com/bouskaJ/camel-k/commit/104f8cd354d53e6432a7233d30779dc9c30890f6
 should fix it WDYT?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to