Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: client.api.v1.namespaces(...).deployments is not a function #678

Open
rubenrajkowski-nbcuni opened this issue Oct 9, 2020 · 0 comments

Comments

@rubenrajkowski-nbcuni
Copy link

rubenrajkowski-nbcuni commented Oct 9, 2020

code example:

example link

const replica = {
      spec: {
        replicas: 10
      }
    }
const replicaModify = await client.api.v1.namespaces('default').deployments(deploymentManifest.metadata.name).patch(body: replica);
console.log('Replica Modification: ', replicaModify)

i've tried this as well:
await client.apis.apps.v1.namespaces('default').deployments(deploymentManifest.metadata.name).patch(body: replica);

error:

TypeError: client.api.v1.namespaces(...).deployments is not a function

can you reply with the correct API method I should use from nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant