-
This looks like a really cool library. We're looking at this for implementing operators for a nascent Kubernetes distribution: neonKUBE One problem I'm having is actually building an operator that generates CRDs. The issue appears to be with dependency injection trying to construct a I replicated this with your KubeOps.TestOperator by executing (without a current Kubernetes context) in the debugger with this command line:
here's the exception:
It seems to me that constructing a |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey @jefflill Sadly this is bug. |
Beta Was this translation helpful? Give feedback.
-
I've worked around this by creating a temporary kubeconfig file with a current context referencing an non-existent cluster and pointing the KUBECONFIG environment variable to this file while the generator commands are being handled by KubeOps. Here's what this looks like: (search for HandleGeneratorCommand): https://github.com/nforgeio/neonKUBE/blob/master/Lib/Neon.Kube.Operator/OperatorHelper.cs |
Beta Was this translation helpful? Give feedback.
-
THANKS!
…On Sun, Jan 2, 2022 at 4:12 AM Christoph Bühler ***@***.***> wrote:
Hey @jefflill <https://github.com/jefflill>, this should be fixed with
cde5ef8
<cde5ef8>
—
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFOLD4Q3RT34BYWN2D5P2LUUA6LVANCNFSM5K5FWR5Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
I've worked around this by creating a temporary kubeconfig file with a current context referencing an non-existent cluster and pointing the KUBECONFIG environment variable to this file while the generator commands are being handled by KubeOps.
Here's what this looks like: (search for HandleGeneratorCommand):
https://github.com/nforgeio/neonKUBE/blob/master/Lib/Neon.Kube.Operator/OperatorHelper.cs