Skip to content

How to setup Dependent resource based on CRD which is not present when controller start #1798

Answered by dmvolod
dmvolod asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, tried reconcilePrecondition without success in our case.
But seems to find a solution, with stopOnInformerErrorDuringStartup disabled. Otherwise would be nice to have an option to validate CRD available via client.getApiResources and than run informer in dynamic.
In this case, following error should be suppressed

2023-03-06 21:19:00,035 WARN  [io.fab.kub.cli.inf.imp.cac.Reflector] (OkHttp Dispatcher) listSyncAndWatch failed for monitoring.coreos.com/v1/servicemonitors, will retry: java.util.concurrent.CompletionException: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://127.0.0.1:44809/apis/monitoring.coreos.com/v1/servicemonitors. Message: N…

Replies: 3 comments 23 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@metacosm
Comment options

@dmvolod
Comment options

@csviri
Comment options

@dmvolod
Comment options

@csviri
Comment options

Comment options

You must be logged in to vote
18 replies
@csviri
Comment options

@dmvolod
Comment options

@dmvolod
Comment options

@metacosm
Comment options

@dmvolod
Comment options

Answer selected by dmvolod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants