Open sacha-l opened 2 years ago
@pepoviola @wirednkod I would like to work on this one, could you please provide me more information about what needs to be accomplished here?
Hi @Gioyik, thanks for your contribution. As context of this task, for k8s
provider we create a cronjob as cleanup-timer to prevent leaking resources if the user loose the connection to the k8s
cluster. But the cluster needs support for that configuration (CronJob
) and some dev
clusters like kind
or the one that is shipped with Docker desktop may not support this. So, we should check if cronjobs
are supported before trying to configure it.
Ping me if you have questions, thanks!!
I am retaking this one. @pepoviola this is where I see the creation of the cronjob https://github.com/paritytech/zombienet/blob/main/javascript/packages/orchestrator/src/providers/k8s/kubeClient.ts#L506, so I will research how to check if is available, any extra info about what should I check it's always good.
Another fact is, how does behave today when the cluster doesn't have support for that configuration, does it fail or stops with the stack trace? How can I test the scenario, is there anything I could trigger to get a reproducible scenario to test against my changes?
@pepoviola What is the expected behavior in the case where some CRD is not supported by the cluster ? Should we throw a fatal error ? Should we disable the not supported CRD ? Should we check for local cluster and ignore in that case and throw if non local cluster ?
@pepoviola What is the expected behavior in the case where some CRD is not supported by the cluster ? Should we throw a fatal error ? Should we disable the not supported CRD ? Should we check for local cluster and ignore in that case and throw if non local cluster ?
Hi @l0r1s, in this particular case we should not trying to create the resource if the CRD is not supported.
Thanks!!
Ping @l0r1s, is this still todo
?
Thx!
@pepoviola Yes it is
Ran into this error when launching my zombienet with:
zombienet -p kubernetes spawn examples/0001-small-network.toml
The fix was to run it using the
-m
flag.