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

[pulsar-admin] allow create functions with package URL #11666

Merged

Conversation

freeznet
Copy link
Contributor

@freeznet freeznet commented Aug 13, 2021

Fix #11665

Motivation

Allow user to create function with package URL with pulsar-admin.

Modifications

  • allow passing valid package URL from pulsar-admin functions
  • added tests

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

For contributor

For this PR, do we need to update docs?

  • If yes, please update docs or create a follow-up issue if you need help.

  • If no, please explain why.

For committer

For this PR, do we need to update docs?

  • If yes,

    • if you update docs in this PR, label this PR with the doc label.

    • if you plan to update docs later, label this PR with the doc-required label.

    • if you need help on updating docs, create a follow-up issue with the doc-required label.

  • If no, label this PR with the no-need-doc label and explain why.

@freeznet freeznet self-assigned this Aug 13, 2021
@freeznet freeznet added doc-required Your PR changes impact docs and you will update later. area/admin labels Aug 13, 2021
@freeznet freeznet changed the title [pulsar-admin] allow create functions with package URL [WIP] [pulsar-admin] allow create functions with package URL Aug 13, 2021
@freeznet freeznet changed the title [WIP] [pulsar-admin] allow create functions with package URL [pulsar-admin] allow create functions with package URL Aug 15, 2021
@Anonymitaet
Copy link
Member

@freeznet thanks for your contribution! When can we start updating docs?

@freeznet
Copy link
Contributor Author

@Anonymitaet thanks, we can start the doc once this PR is merged.

@freeznet freeznet requested a review from jerrypeng August 16, 2021 03:20
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

overall looks good

please take a look to my comment about reducing duplicated code

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@nlu90 nlu90 left a comment

Choose a reason for hiding this comment

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

LGTM

@Anonymitaet
Copy link
Member

@Anonymitaet thanks, we can start the doc once this PR is merged.

@freeznet please ping me if you submit a doc PR, thanks

@sijie sijie added this to the 2.9.0 milestone Aug 17, 2021
@sijie sijie merged commit de86f4f into apache:master Aug 17, 2021
codelipenghui pushed a commit that referenced this pull request Aug 19, 2021
Fix #11665

### Motivation

Allow user to create function with package URL with pulsar-admin.

### Modifications

- allow passing valid package URL from pulsar-admin functions
- added tests

(cherry picked from commit de86f4f)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Aug 19, 2021
@Anonymitaet Anonymitaet removed the doc-required Your PR changes impact docs and you will update later. label Sep 11, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Fix apache#11665

### Motivation

Allow user to create function with package URL with pulsar-admin.

### Modifications

- allow passing valid package URL from pulsar-admin functions
- added tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pulsar-admin functions cannot use package URL to create function
7 participants