-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: add callbackurl to advise endpoint #1759
Conversation
Skipping CI for Draft Pull Request. |
883805d
to
6f7b8ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm,
just few comments
thoth/user_api/api_v1.py
Outdated
value = json.dumps({"callbackurl": callbackurl, "Authorization": auth_header, "client_data": client_data}) | ||
entry_name = random.choices(string.ascii_letters, k=16) | ||
body = [{"op": "add", "path": f"/data/{entry_name}", "value": value}] | ||
k8.client.CoreV1Api.patch_namespaced_secret( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we try to use common
repo , so that if this kind action is needed somewhere else, we can use it ?
we would have to create a patch_secret using oc
Example: https://github.com/thoth-station/common/blob/5645625b9b7411a78187cd22b5a0410913e2145d/thoth/common/openshift.py#L1114
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think adding it to common is a good idea. I think creating a function in common will not remove any of the complexity from the call and it will just add another layer of abstraction.
6f7b8ab
to
046a349
Compare
what is the status of this? |
046a349
to
738c86f
Compare
/deploy |
738c86f
to
748f2dd
Compare
748f2dd
to
d664616
Compare
This should be good to go now. |
d664616
to
ff14869
Compare
ff14869
to
f6f72bc
Compare
@harshad16 PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
thanks 💯
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: harshad16 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hmm, not sure who has permissions to merge this |
Related Issues and Dependencies
closes: #1756
This introduces a breaking change
This should yield a new module release
This Pull Request implements
Creation of secrets based on document id as well as posting results to webhook if already available.