Skip to content

Commit

Permalink
class-generator: Support resources with same kind (#2060)
Browse files Browse the repository at this point in the history
* Support resources with same kind

* Support resources with same kind

* Add test for DNS

* Add minimum cluster version check

* Resolve comments
  • Loading branch information
myakove authored Aug 19, 2024
1 parent 8b6973d commit 791275d
Show file tree
Hide file tree
Showing 15 changed files with 403 additions and 193 deletions.
9 changes: 9 additions & 0 deletions class_generator/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Resource class generator

Utility to add a python module with class resources to openshift-python-wrapper based on `kind`

Some resources have the same kind, in this case the script will create two files.
For example `DNS` kind have two CRDs, one from `config.openshift.io` and one from `operator.openshift.io`
The output will be:

- dns_operator_openshift_io.py
- dns_config_openshift_io.py

## Usage

### Installation
Expand Down
Loading

0 comments on commit 791275d

Please sign in to comment.