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

Added Update and Replace APIs for Service custom values #2522

Merged
merged 11 commits into from
Sep 1, 2023

Conversation

andreas-kupries
Copy link
Contributor

@andreas-kupries andreas-kupries commented Aug 25, 2023

fix #2518

@andreas-kupries andreas-kupries added the kind/bug Something isn't working label Aug 25, 2023
@andreas-kupries andreas-kupries added this to the v1.10.0 milestone Aug 25, 2023
@andreas-kupries andreas-kupries self-assigned this Aug 25, 2023
@andreas-kupries
Copy link
Contributor Author

confirmed breakage in local CI run. investigate after the weekend

@codecov
Copy link

codecov bot commented Aug 28, 2023

@andreas-kupries andreas-kupries marked this pull request as ready for review August 29, 2023 10:29
@andreas-kupries andreas-kupries requested a review from a team as a code owner August 29, 2023 10:29
@andreas-kupries
Copy link
Contributor Author

@richard-cox For the UI we have a new Replace API endpoint, analogous to what the server offers for configurations. The CLI uses the new Update endpoint.

@enrichman
Copy link
Member

There are some conflicts to resolve. One first thing is that I would change the --remove flag to --unset, to have the --set/--unset pair available.

@andreas-kupries
Copy link
Contributor Author

Will resolve the conflicts.

@andreas-kupries
Copy link
Contributor Author

One first thing is that I would change the --remove flag to --unset, to have the --set/--unset pair available.

Note that making this change would make this different from the configuration update command which uses the same --remove/--set pair.

- removed redundant check
- added documentation of Update/Replace for configurations.
- fixed comment typo
…date/replace into singular function.

note: this will be used by service update/replace too.
further reordered the types to separate catalog from service.
- moved post hook into adressable function, leaving only the closure
- moved deploy code into separate function for use by coming update/replace
@andreas-kupries
Copy link
Contributor Author

One first thing is that I would change the --remove flag to --unset, to have the --set/--unset pair available.

Note that making this change would make this different from the configuration update command which uses the same --remove/--set pair.

Finding https://github.com/spf13/pflag#mutating-or-normalizing-flag-names I will see if I can support the old --remove while switching to --unset going forward. That way we would have backward compatibility.

@andreas-kupries
Copy link
Contributor Author

One first thing is that I would change the --remove flag to --unset, to have the --set/--unset pair available.

Note that making this change would make this different from the configuration update command which uses the same --remove/--set pair.

Finding https://github.com/spf13/pflag#mutating-or-normalizing-flag-names I will see if I can support the old --remove while switching to --unset going forward. That way we would have backward compatibility.

The normalizing stuff as shown was not working out. It also affects the help texts (because the flag name in the help is the normalization result, so you see the new name, together with old short hand and help text).

Done in a different way with commit 10f3921

@andreas-kupries andreas-kupries merged commit f3b6abd into main Sep 1, 2023
18 checks passed
@andreas-kupries andreas-kupries deleted the 2518-service-instance-edit-cv branch September 1, 2023 10:58
@enrichman enrichman added kind/enhancement New feature or request and removed kind/bug Something isn't working labels Sep 25, 2023
@enrichman enrichman changed the title fixed missing support for edit of service (custom values, update/replace) Added Update and Replace APIs for Service custom values Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

It's not possible to edit Service chart values/settings
2 participants