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

Add DelAnnotations field to support del annotation #137

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

ningyougang
Copy link
Contributor

Currently, if passing another annotations, original previous annotation
will be removed and the passed new annotations will be added.

It may give users some confused that why my previous annotation gone.
So it is better to not delete user's previous annotation when adding new
annotation, but at the same time, need to provide a feature that
support to delete annotation by user via ClI, e.g.

wsk action update hello --del-annotation key1 --del-annotation key2

another brother prs to support del annotation:

Version string `json:"version,omitempty"`
Exec *Exec `json:"exec,omitempty"`
Annotations KeyValueArr `json:"annotations,omitempty"`
DelAnnotations []string `json:"delAnnotations,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added field DelAnnotations []string

@ningyougang ningyougang reopened this Aug 12, 2020
@ningyougang
Copy link
Contributor Author

ningyougang commented Aug 12, 2020

It seems build error
image

It seems have no relation with my codes, is it travis problem?
this build error can be solved by this pr: #138

Copy link
Member

@style95 style95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
A better name is desired, but I have no good idea for now.

@ningyougang ningyougang reopened this Aug 18, 2020
@style95 style95 merged commit 44551f1 into apache:master Aug 24, 2020
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

Successfully merging this pull request may close these issues.

2 participants