-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add opa_query_path to Organization/Inventory/JobTemplate
- Loading branch information
1 parent
de4a971
commit 6fdca46
Showing
10 changed files
with
78 additions
and
9 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
awx/main/migrations/0197_inventory_opa_query_path_jobtemplate_opa_query_path_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 4.2.16 on 2025-02-25 18:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('main', '0196_indirect_managed_node_audit'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='inventory', | ||
name='opa_query_path', | ||
field=models.CharField( | ||
blank=True, | ||
default=None, | ||
help_text='Specifies the OPA policy rule path in the format <policy package name>/<rule name> (e.g., job_template/response) or <policy package name>.<rule name> (e.g., job_template.response). The <rule name> is optional and can also be nested (e.g., job_template/response/allowed). Set to NULL if FEATURE_POLICY_AS_CODE_ENABLED is False.', | ||
max_length=128, | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='jobtemplate', | ||
name='opa_query_path', | ||
field=models.CharField( | ||
blank=True, | ||
default=None, | ||
help_text='Specifies the OPA policy rule path in the format <policy package name>/<rule name> (e.g., job_template/response) or <policy package name>.<rule name> (e.g., job_template.response). The <rule name> is optional and can also be nested (e.g., job_template/response/allowed). Set to NULL if FEATURE_POLICY_AS_CODE_ENABLED is False.', | ||
max_length=128, | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='opa_query_path', | ||
field=models.CharField( | ||
blank=True, | ||
default=None, | ||
help_text='Specifies the OPA policy rule path in the format <policy package name>/<rule name> (e.g., job_template/response) or <policy package name>.<rule name> (e.g., job_template.response). The <rule name> is optional and can also be nested (e.g., job_template/response/allowed). Set to NULL if FEATURE_POLICY_AS_CODE_ENABLED is False.', | ||
max_length=128, | ||
null=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters