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
Initially, the CRD of AppService is not registered.
$ kubectl get CRD
No resources found.
The above code prints the error:
ERRO[0000] failed to get resource client for (apiVersion:example.com/v1alpha1, kind:AppService, ns:default): failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(example.com/v1alpha1, Kind=AppService): no matches for example.com/, Kind=AppService
Let's create the CRD:
$ kubectl get crd
NAME AGE
appservices.example.com 7s
We expect the getter from main loop to eventually discover the AppService resource so that
the getter gets the correct resource. However, that does not happen, and we get the same error as before:
ERRO[0035] failed to get resource client for (apiVersion:example.com/v1alpha1, kind:AppService, ns:default): failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(example.com/v1alpha1, Kind=AppService): no matches for example.com/, Kind=AppService
The text was updated successfully, but these errors were encountered:
This sets up a go routine to reset the restMapper at a 1 minute
interval so that new resources can be found in the cluster.
fixesoperator-framework#272
This sets up a go routine to reset the restMapper at a 1 minute
interval so that new resources can be found in the cluster.
fixesoperator-framework#272
shawn-hurley
pushed a commit
to shawn-hurley/operator-sdk
that referenced
this issue
May 24, 2018
This sets up a go routine to reset the restMapper at a 1 minute
interval so that new resources can be found in the cluster.
adds fix to CHANGELOG.md
fixesoperator-framework#272
Currently The SDK's query, action, and Watch APIs are not able to discover a new resource
type after the operator has initiated.
For example:
We have a setup such that the operator gets the
AppService
resource every 5 seconds:Initially, the CRD of
AppService
is not registered.The above code prints the error:
Let's create the CRD:
We expect the getter from main loop to eventually discover the
AppService
resource so thatthe getter gets the correct resource. However, that does not happen, and we get the same error as before:
The text was updated successfully, but these errors were encountered: