-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version: v1.0.0-alpha1
Following the instructions at https://github.com/falox/csharp-operator-sdk/tree/master/samples/basic, the basic-operator pod enters in the CrashLoopBackOff status.
Logs
<7>k8s.Operators.Operator[0] Adding controller k8s.Operators.Samples.Basic.MyResourceController on namespace(s) ALL
<6>k8s.Operators.Operator[0] Start operator
invocationId: 1
instance: k8s.Kubernetes
method: ListNamespacedCustomObject
parameters: {continueParameter=,fieldSelector=,labelSelector=,limit=,resourceVersion=,timeoutSeconds=3600,watch=True,pretty=,group=csharp-operator.example.com,version=v1,namespaceParameter=,plural=myresources,cancellationToken=System.Threading.CancellationToken}
invocationId: 1
request: Method: GET, RequestUri: 'https://10.96.0.1/apis/csharp-operator.example.com/v1/namespaces//myresources?timeoutSeconds=3600&watch=true', Version: 1.1, Content: <null>, Headers:
{
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IlhCaW8yd1M4UGZRN2VOUmhVdnJQc3lFTklJS2tnNjQ5dEZVd0F3c1RBM0UifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImJhc2ljLW9wZXJhdG9yLXRva2VuLTVqN2xyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImJhc2ljLW9wZXJhdG9yIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiZmYzZWM0YWUtZDhjZC00MjM0LTkyNjItMTBhZTgwOTU0NzM2Iiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmRlZmF1bHQ6YmFzaWMtb3BlcmF0b3IifQ.VUymqv4S1Skrxw695DWJpOxp8cpFoy024IjVyoA2Bk5SfH37WPVPSDigEd6r0ycG3N_tB2JqKUEzBewXWUNObWt7M17EBXCg8m_5j2jz-JuqvcTL_RUNzQhxUsmFd_Uz1MMkYXeae8kpRzrs_925a0YjbmTN5em1qgUp9t_ytUh44sifs_3UE4u3xOgZASGuY0jGGZnndkfOL4TxRgDYQ7SiNDk1-I5b2X0uyt747PRDeb5o0W4kpUG8YWwHc0kD9pRGE8FpspWZSDOQE7AI9vOaNPiTldQiIA5IFmfRfV7eddg6gVciUxEDUQgf0Xy16hdlNfMIigMLglpsJ4wc8g
}
invocationId: 1
response: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache, private
X-Content-Type-Options: nosniff
Date: Mon, 05 Oct 2020 06:39:02 GMT
Content-Type: application/json
Content-Length: 396
}
Body:
{
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"myresources.csharp-operator.example.com is forbidden: User \"system:serviceaccount:default:basic-operator\" cannot watch resource \"myresources\" in API group \"csharp-operator.example.com\" at the cluster scope","reason":"Forbidden","details":{"group":"csharp-operator.example.com","kind":"myresources"},"code":403}
}
invocationId: 1, exception: Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'
<3>k8s.Operators.Operator[0] Error watching /myresources Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden' at k8s.Kubernetes.ListNamespacedCustomObjectWithHttpMessagesAsync(String group, String version, String namespaceParameter, String plural, String continueParameter, String fieldSelector, String labelSelector, Nullable`1 limit, String resourceVersion, Nullable`1 timeoutSeconds, Nullable`1 watch, String pretty, Dictionary`2 customHeaders, CancellationToken cancellationToken) at k8s.Operators.Operator.WatchCustomResourceAsync[T](CustomResourceDefinitionAttribute crd, String namespace) in /app/src/k8s.Operators/Operator.cs:line 156
<7>k8s.Operators.Samples.Basic.Program[0] SIGTERM Received
<6>k8s.Operators.Operator[0] Stop operator
<6>k8s.Operators.Operator[0] Disposing operator
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working