Skip to content

Commit

Permalink
create AAQ resource (#1641)
Browse files Browse the repository at this point in the history
* create AAQ resource

* add todo section for missing code

* move todo to the right place
  • Loading branch information
dbasunag authored Feb 6, 2024
1 parent 0dccdbd commit becd051
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ocp_resources/aaq.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# API reference: https://github.com/kubevirt/application-aware-quota/blob/main/README.md
# TODO: update API reference when OCP doc is available

from ocp_resources.resource import Resource


class AAQ(Resource):
"""
AAQ object.
"""

api_group = Resource.ApiGroup.AAQ_KUBEVIRT_IO


# TODO: Add missing code e.g. to_dict()
1 change: 1 addition & 0 deletions ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ class State:
ABSENT = "absent"

class ApiGroup:
AAQ_KUBEVIRT_IO = "aaq.kubevirt.io"
ADMISSIONREGISTRATION_K8S_IO = "admissionregistration.k8s.io"
APIEXTENSIONS_K8S_IO = "apiextensions.k8s.io"
APIREGISTRATION_K8S_IO = "apiregistration.k8s.io"
Expand Down

0 comments on commit becd051

Please sign in to comment.