Replies: 4 comments
-
unless ofcourse i've missed something :) |
Beta Was this translation helpful? Give feedback.
-
it's important to point out that our JVM process is comprised of multiple controllers that share a single kubernetes client ( we use josdk ). so a global kubernetes-client property won't do for us |
Beta Was this translation helpful? Give feedback.
-
If you set a dummy resourceVersion, such as "1", then it will only allow the serverSideApply to succeed if the resource does not already exist. This is the mechanism that is used by the java operator sdk. |
Beta Was this translation helpful? Give feedback.
-
thanks @shawkins , that would do for now :) |
Beta Was this translation helpful? Give feedback.
-
Is there a reason why we can't supply a field manager ( or override the default
fabric8-kubernetes-client
) when trying to "create" a resource through fabric8?kubectl does seem to support it
The only operation after providing a
fieldManager(String)
isserverSideApply()
which is a bit problematic for my controller code path that strictly expects the "create" to fail if a resource already exists so that appropriate error can be shown to the user ( regarding resource name clash ).Beta Was this translation helpful? Give feedback.
All reactions