Retrieval of Reflective Information
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- api, authorization
Research direction
Start with the issue's get_write_access example and the Workload.builder(), apply_workload(), and delete_workload() calls to understand the current access probe. Review the linked Ankaios dashboard request for the required reflective information and define what names, permissions, and completion behavior the SDK should expose.
Written by the indexing model from the issue text.
Description
Description
It would be nice to have a feature, to find out the name, read write access, i.e. reflective information on the workload that the python sdk is called from.
As requested by https://github.com/FelixMoelders/ankaios-dashboard/issues/36 it is necessary to find out whether the calling sdk has write access.
Currently I retrieve the information with an anti-pattern:
def get_write_access(self):
write_access = {"writeAccess": True}
try:
workload = Workload.builder().workload_name("access_test").agent_name("access_test_agent").runtime("podman").runtime_config("").restart_policy("NEVER").build()
self.ankaios.apply_workload(workload)
self.ankaios.delete_workload("access_test")
except AnkaiosException as e:
print("Ankaios exception: ", e)
if "Access denied" in str(e):
write_access = {"writeAccess": False}
return write_access
- Dominant language
- Python
- Stars
- 8
- Forks
- 4
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-ankaios/ank-sdk-python
-
python-version
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
enhancement good first issue
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Add system tests Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in eclipse-ankaios/ank-sdk-python
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100