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

fix(plugins): UX improvements #8122

Merged
merged 2 commits into from
Mar 10, 2022
Merged

fix(plugins): UX improvements #8122

merged 2 commits into from
Mar 10, 2022

Conversation

Shark
Copy link
Contributor

@Shark Shark commented Mar 10, 2022

Changes:

  • Content-Type header is added to template.execute RPC calls → apart from technical correctness this makes it easier to use because many frameworks rely on this header for JSON parsing

    ✅ Has an integration test in test/e2e/executor_plugins_test.go

  • argo executor-plugin build . copies the metadata/namespace from the plugin manifest to the ConfigMap

    ✅ Tested on my local machine

@Shark Shark changed the title UX Improvements for Executor Plugins fix(plugins): UX improvements Mar 10, 2022
@@ -31,6 +31,7 @@ func ToConfigMap(p *spec.Plugin) (*apiv1.ConfigMap, error) {
Labels: map[string]string{
common.LabelKeyConfigMapType: p.Kind,
},
Namespace: p.ObjectMeta.Namespace,
Copy link
Contributor

Choose a reason for hiding this comment

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

minor - simplify to p.Namespace,

@Shark Shark marked this pull request as ready for review March 10, 2022 16:22
@alexec
Copy link
Contributor

alexec commented Mar 10, 2022

test?

@sarabala1979 sarabala1979 merged commit 972a4e9 into argoproj:master Mar 10, 2022
@Shark Shark deleted the plugin-improvements branch March 11, 2022 13:36
@sarabala1979 sarabala1979 mentioned this pull request Mar 18, 2022
12 tasks
alexec pushed a commit that referenced this pull request Mar 18, 2022
* fix(plugins): set Content-Type request header

Signed-off-by: Felix Seidel <[email protected]>

* fix(plugins): keep namespace from plugin manifest

Signed-off-by: Felix Seidel <[email protected]>
sarabala1979 pushed a commit that referenced this pull request Mar 18, 2022
* fix(plugins): set Content-Type request header

Signed-off-by: Felix Seidel <[email protected]>

* fix(plugins): keep namespace from plugin manifest

Signed-off-by: Felix Seidel <[email protected]>
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request Mar 23, 2022
* fix(plugins): set Content-Type request header

Signed-off-by: Felix Seidel <[email protected]>

* fix(plugins): keep namespace from plugin manifest

Signed-off-by: Felix Seidel <[email protected]>
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.

3 participants