-
Notifications
You must be signed in to change notification settings - Fork 50
[AQUA] CLI to verify policies to perform operations related to AQUA. #1218
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
base: main
Are you sure you want to change the base?
Conversation
|
Could you add description to this PR? |
|
|
|
UNVERIFIED = "UNVERIFIED" | ||
|
||
|
||
@dataclass(repr=False) |
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.
NIT: We are trying to move everything to pydantic classes instead.
utils.list_compartments.__name__: { | ||
"name": "List Compartments", | ||
"error": "Unable to retrieve the list of compartments. Please verify that you have the required permissions to list compartments in your tenancy. ", | ||
"policy_hint": "Allow dynamic-group aqua-dynamic-group to inspect compartments in tenancy" |
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.
As we discussed during the syncup, let's also try to add a link to the GH docs, where the policies can be setup.
subnet_id = kwargs.pop("subnet_id", None) | ||
job_infrastructure_type = "STANDALONE" if subnet_id is not None else "ME_STANDALONE" | ||
|
||
response = self.aqua_model.ds_client.create_job( |
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.
NIT: This could be done using ADS Jobs implementation.
https://accelerated-data-science.readthedocs.io/en/latest/user_guide/jobs/run_python.html
Will the |
This utility is designed to help users verify whether they have the necessary permissions to perform common AQUA workflows, such as model registration, deployment, evaluation, and fine-tuning.
Common Methods:
ads aqua verify_policies common_policies
ads aqua verify_policies model_register
ads aqua verify_policies model_deployment
ads aqua verify_policies evaluation
ads aqua verify_policies finetune