kptdev / kpt

Automate Kubernetes Configuration Editing
https://kpt.dev
Apache License 2.0
1.69k stars 227 forks source link

TS SDK: Deprecation warning in CLI: crypto.createDecipher #564

Open frankfarzan opened 4 years ago

frankfarzan commented 4 years ago

When running npm init kpt-functions

> What is the kubeconfig context in which to create types (0)? 
Using kubeconfig context "0".

(node:29885) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
Generated /tmp/my-package/src/gen

Completed: Generating types from OpenAPI spec.
prachirp commented 4 years ago

Get the same error on Mac:


npm run kpt:function-create

> testdir@0.1.0 kpt:function-create /Users/prachirp/workspace/kpt-release-test/testdir
> kpt function-create

Starting: Adding a KPT function.

> What is the function name (my_func)? 
Using function name "my_func".

Generated /Users/prachirp/workspace/kpt-release-test/testdir/src/my_func.ts
Generated /Users/prachirp/workspace/kpt-release-test/testdir/src/my_func_run.ts
Generated /Users/prachirp/workspace/kpt-release-test/testdir/src/my_func_test.ts

Completed: Adding a KPT function.

(node:66251) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.```