We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is the configMap I am trying to update and add data to:
kind: ConfigMap apiVersion: v1 metadata: name: my-config-map data: users.json: |- [ { name: 'user-one', age: 10 } ]
I tried the following code, but it fails:
const addToConfig = { data: { "users.json": { name: 'user-two', age: 12 } } } await kubeclient.api.v1.namespaces('my-namespace').configmaps('my-config-map').patch({ body: addToConfig})
How can I use the API to update the configMap and append data to the users.json array?
users.json
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is the configMap I am trying to update and add data to:
I tried the following code, but it fails:
How can I use the API to update the configMap and append data to the
users.json
array?The text was updated successfully, but these errors were encountered: