javascript
javascript copied to clipboard
Inconsistencies in examples
Describe the bug There are a few inconsistencies/bugs in the examples in the repo:
- There has been some drift between the examples on the
master
branch and those on therelease-1.x
branch. - Some of the examples use
@kubernetes/client-node
, while others use the build fromdist/
. - Some use
require()
, while others useimport
. It probably makes sense to migrate toimport
. However, the examples that useimport
should probably be renamed to use a.mjs
file extension (otherwise they don't run). - Not really an issue, but the Node core imports can also be updated to use the
node:
scheme. - Some examples use the
Promise
API directly, while some useasync
/await
. This is not an issue, but it might be worth moving toasync
/await
just to keep the examples simpler.
Client Version latest on master and release-1.x branches.
Server Version n/a
To Reproduce View and try to run the various examples.
Expected behavior The examples are consistent and executable.
Example Code n/a
Environment (please complete the following information): n/a
Additional context n/a