iex(ephemeral@127.0.0.1)6> {:ok, configmap} = Kazan.run(configmap)
** (MatchError) no match of right hand side value: {:error, {:http_error, 400, %{"apiVersion" => "v1", "code" => 400, "kind" => "Status", "message" => "ConfigMap in version \"v1\" cannot be handled as a ConfigMap: v1.ConfigMap: Data: ReadString: expects \" or n, parsing 106 ...
%Core.ConfigMap{
data: %{test: "something"},
metadata: %ObjectMeta{generate_name: "test"}
}
|> Core.create_namespaced_config_map!("test")
|> Kazan.run!
%Kazan.Apis.Core.V1.ConfigMap{
api_version: "v1",
data: %{"test" => "something"},
kind: "ConfigMap",
metadata: %Kazan.Models.Apimachinery.Meta.V1.ObjectMeta{
annotations: nil,
cluster_name: nil,
creation_timestamp: "2018-02-20T01:23:19Z",
deletion_grace_period_seconds: nil,
deletion_timestamp: nil,
finalizers: nil,
generate_name: "test",
generation: nil,
initializers: nil,
labels: nil,
name: "test8tbn5",
namespace: "test",
owner_references: nil,
resource_version: "16145",
self_link: "/api/v1/namespaces/test/configmaps/test8tbn5",
uid: "a28c036c-15dc-11e8-a477-0800273edc08"
}
}
.from_kubeconfig()
which generates a Kazan.Server{}
where auth: nil
(not sure if that's relevant). I'm using gcloud sdk to configure kubectl.403
"unknown user 'system:anonymous'". Any thoughts on what I might be doing wrong?
.resolve_auth
I get a struct with the token. But I'm not matching this case https://github.com/obmarg/kazan/blob/master/lib/kazan/client/imp.ex#L40
Hi,
i would like use your lib but i dont understand one thing in Kazan.Watcher part.
Start a watcher using the request, and passing the initial resource version and a pid to which to send received messages.
Kazan.Watcher.start_link(request, resource_version: rv, send_to: self())
...
resource_version - The version from which to start watching.
I don't understand what is resource version
?
Do you have a example of an watcher ?