IPersistentStatefrom being registered in DI? I have a feeling it's something to do with the code gen, but
<OrleansCodeGenLogLevel>Trace</OrleansCodeGenLogLevel>seems to show that the generation was successful. I'm getting
Unable to resolve serv ice for type Orleans.Runtime.IPersistentStatebut I've not changed anything in my DI or service startup. I made 1 contract change to the grain, but after commenting out that change - the error still persists
Microsoft.Orleans.CodeGenerator.MSBuildinstead of that package, if you can. It's newer).
IPersistentState<T>is created using a factory by the
IGrainActivatorimplementation (implemented by
DefaultGrainActivator). It's done this way because each
IPersistentState<T>instance injected into the constructor uses an attribute to specify which state provider and state name it uses (similar to bindings in Az Functions)
k8s.Kubernetes.ListNamespacedCustomObjectWithHttpMessagesAsync. Did anyone have issues like this?
I thought I needed to use both libraries. I did the changes you suggested and tried to deploy again, now only using the UseKubeMembership(). I also followed some of the sample files in the repository. For now, since this is a PoC, my client and silo are both running together, that's why we have all the permissions there.
I'm still receiving this:
Unable to initialize cluster version: Operation returned an invalid status code 'Forbidden'.
Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'
at k8s.Kubernetes.GetNamespacedCustomObjectWithHttpMessagesAsync(String group, String version, String namespaceParameter, String plural, String name, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at k8s.KubernetesExtensions.GetNamespacedCustomObjectAsync(IKubernetes operations, String group, String version, String namespaceParameter, String plural, String name, CancellationToken cancellationToken)
This is the library im referring to. Seems a little overkill but not sure if its the only option https://github.com/OrleansContrib/Orleans.Indexing
anyone have some suggestions here?