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

Not handling other resource types #4

Open
moltar opened this issue Apr 14, 2019 · 2 comments
Open

Not handling other resource types #4

moltar opened this issue Apr 14, 2019 · 2 comments

Comments

@moltar
Copy link

moltar commented Apr 14, 2019

Once I passed the namespace issue #3, I ran into another one.

Trying to create the following via updateOrCreate is throwing an error too:

{
      apiVersion: 'v1',
      kind: 'ServiceAccount',
      metadata: { namespace: 'foo', name: 'foo' }
}
    serviceaccounts "foo" not found

      at _request (node_modules/kubernetes-client/lib/backends/request.js:189:25)
      at Request.request [as _callback] (node_modules/kubernetes-client/lib/backends/request.js:148:14)
      at Request.self.callback (node_modules/request/request.js:185:22)
      at Request.<anonymous> (node_modules/request/request.js:1161:10)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12)
@ajpauwels
Copy link
Owner

Can I get your code for this one?

@moltar
Copy link
Author

moltar commented Apr 16, 2019

This is pretty much it...

const ns = {
      apiVersion: 'v1',
      kind: 'ServiceAccount',
      metadata: { namespace: 'foo', name: 'foo' }
}

updateOrCreate(kubeconfig, ns)

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

2 participants