You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated clientset for ClusterInputs (and other types of now (as of 1.0-rc) cluster-bound resources) needs a namespace, but since ClusterInput (et al.) is a cluster scoped resource, the Create fails.
Consider:
fluentbit, _:=fluentbitAPI.NewForConfig(config)
_, err=fluentbit.ClusterInputs("a-namespace").Create(ctx, "myInputName", metav1.CreateOptions{})
// err.Error() == "the server could not find the requested resource (post clusterinputs.fluentbit.fluent.io)"// Causes[0]: Type: "UnexpectedServerResponse", Message: "404 page not found"
The above fails. It is equivalent to a manual call on the API:
POST /apis/fluentbit.fluent.io/v1alpha2/namespaces/a-namespace/clusterinputs
Manually calling the API at non-namespaced path (note the removed namespace):
POST /apis/fluentbit.fluent.io/v1alpha2/clusterinputs
Please advise as there doesn't seem to be any generated API to create a ClusterInput. Note that I might be "holding it wrong". The Kubebuilder options correctly state scope=Cluster, so something is strange in the generated API.
The text was updated successfully, but these errors were encountered:
The generated clientset for ClusterInputs (and other types of now (as of 1.0-rc) cluster-bound resources) needs a namespace, but since ClusterInput (et al.) is a cluster scoped resource, the Create fails.
Consider:
The above fails. It is equivalent to a manual call on the API:
Manually calling the API at non-namespaced path (note the removed namespace):
Succeeds.
ref: API concepts.
Please advise as there doesn't seem to be any generated API to create a ClusterInput. Note that I might be "holding it wrong". The Kubebuilder options correctly state scope=Cluster, so something is strange in the generated API.
The text was updated successfully, but these errors were encountered: