Comments (9)
Use update
to define new prameters. These replace existing ones.
from openwhisk.
To allow incremental updates (add/delete) individual parameters and annotations, we need an API change. This may be best done as part of the "v2" of the API; we can treat parameters and annotations as subresources of the action as in /api/v2/actions/ns/pkg/name/parameters
.
from openwhisk.
As I understand it, this will replace existing parameters with new ones, but not delete them.
from openwhisk.
That's true, from the CLI, you can replace but not delete. If you made a direct API call, you could delete and replace the parameters.
from openwhisk.
Proposal : add a -dp flag to wsk action update which means "delete parameter".
Comments?
from openwhisk.
from openwhisk.
Somewhat related to this: updating parameters is not additive, an update to the action code doesn't seem to remove the default param values.
from openwhisk.
when you update an action with new code, and don't specify any parameters, the POST looks like this { exec: ...}
and not {exec: ..., params: []}
. This is allow you to update exec but not remove annotations or parameters that are already attached to the action. The way to remove the parameters through the CLI will require a solution as suggested by @sjfink above.
from openwhisk.
Issue moved to apache/incubator-openwhisk-cli #161 via ZenHub
from openwhisk.
Related Issues (20)
- OpenWhisk Releases HOT 3
- AkkaContainerClient breaks the ConcurrentTests of nodejs runtime HOT 2
- Deployment Components HOT 5
- The openwhisk is incompatible with java version higher than 16
- Web function 400 Bad Request HOT 1
- Package-installer-pod not-completed on Minikube
- The connection failed, or timed out. (HTTP status code 500) and There was an internal server error.
- How to correctly modify OpenWhisk’s gateway blocking limit from source code (currently 60s) HOT 13
- Ubuntu 22.04 Serve Install issue HOT 1
- Local ansible deployment API gateway error 502
- Setting the number of containers created per action
- Standalone Openwhisk error: Key not found 'etcd' HOT 11
- deploy failed when run ansible-playbook using openwhisk.yml HOT 8
- Question: How to create an action using a custom Ubuntu docker image HOT 5
- Feat: Using pekko instead of akka HOT 2
- Python:3 virtualenv load failing probably HOT 2
- Webaction runs twice within one activation, and reported as failure when it did not actually fail HOT 2
- Apahce openwhisk many pods has completed, Init, crashLoopbackoff error
- can't start standalone on apple m2 HOT 1
- Latest Scheduler image on dockerhub does not run in k8s HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk.