Skip to content

Conversation

@jgarciao
Copy link

@jgarciao jgarciao commented Jan 22, 2026

Short description:

Adding the new network field to LlamaStackDistribution, which was added recently at github.com/llamastack/llama-stack-k8s-operator/pull/221)

Summary by CodeRabbit

  • New Features
    • Added optional network configuration support to LlamaStack distribution settings, enabling users to specify custom network parameters when initializing a distribution.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 22, 2026

Walkthrough

This PR adds an optional network parameter to the LlamaStackDistribution class, stores it as an instance variable, and includes it in the serialized output via the to_dict() method when the parameter is provided.

Changes

Cohort / File(s) Summary
Network parameter addition
ocp_resources/llama_stack_distribution.py
Added optional network: dict[str, Any] | None = None parameter to __init__, stored as instance variable, and integrated into to_dict() serialization logic

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

branch-main, can-be-merged

Suggested reviewers

  • rnetser
  • dbasunag
🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete; only the 'Short description' section is filled while other required sections like 'More details', 'What this PR does / why we need it', and 'Which issue(s) this PR fixes' are missing. Complete the pull request description by filling in the remaining template sections, particularly explaining the purpose and any associated issue references.
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding a 'network' field to LlamaStackDistribution.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@redhat-qe-bot
Copy link
Contributor

Report bugs in Issues

Welcome! 🎉

This pull request will be automatically processed with the following features:

🔄 Automatic Actions

  • Reviewer Assignment: Reviewers are automatically assigned based on the OWNERS file in the repository root
  • Size Labeling: PR size labels (XS, S, M, L, XL, XXL) are automatically applied based on changes
  • Issue Creation: Disabled for this repository
  • Branch Labeling: Branch-specific labels are applied to track the target branch
  • Auto-verification: Auto-verified users have their PRs automatically marked as verified
  • Labels: All label categories are enabled (default configuration)

📋 Available Commands

PR Status Management

  • /wip - Mark PR as work in progress (adds WIP: prefix to title)
  • /wip cancel - Remove work in progress status
  • /hold - Block PR merging (approvers only)
  • /hold cancel - Unblock PR merging
  • /verified - Mark PR as verified
  • /verified cancel - Remove verification status
  • /reprocess - Trigger complete PR workflow reprocessing (useful if webhook failed or configuration changed)
  • /regenerate-welcome - Regenerate this welcome message

Review & Approval

  • /lgtm - Approve changes (looks good to me)
  • /approve - Approve PR (approvers only)
  • /automerge - Enable automatic merging when all requirements are met (maintainers and approvers only)
  • /assign-reviewers - Assign reviewers based on OWNERS file
  • /assign-reviewer @username - Assign specific reviewer
  • /check-can-merge - Check if PR meets merge requirements

Testing & Validation

  • /retest tox - Run Python test suite with tox
  • /retest python-module-install - Test Python package installation
  • /retest conventional-title - Validate commit message format
  • /retest all - Run all available tests

Cherry-pick Operations

  • /cherry-pick <branch> - Schedule cherry-pick to target branch when PR is merged
    • Multiple branches: /cherry-pick branch1 branch2 branch3

Label Management

  • /<label-name> - Add a label to the PR
  • /<label-name> cancel - Remove a label from the PR

✅ Merge Requirements

This PR will be automatically approved when the following conditions are met:

  1. Approval: /approve from at least one approver
  2. LGTM Count: Minimum 0 /lgtm from reviewers
  3. Status Checks: All required status checks must pass
  4. No Blockers: No WIP, hold, conflict labels
  5. Verified: PR must be marked as verified (if verification is enabled)

📊 Review Process

Approvers and Reviewers

Approvers:

  • myakove
  • rnetser

Reviewers:

  • myakove
  • rnetser
Available Labels
  • hold
  • verified
  • wip
  • lgtm
  • approve
  • automerge

💡 Tips

  • WIP Status: Use /wip when your PR is not ready for review
  • Verification: The verified label is automatically removed on each new commit
  • Cherry-picking: Cherry-pick labels are processed when the PR is merged
  • Permission Levels: Some commands require approver permissions
  • Auto-verified Users: Certain users have automatic verification and merge privileges

For more information, please refer to the project documentation or contact the maintainers.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
ocp_resources/llama_stack_distribution.py (1)

16-49: Generated code edited directly—update the generator instead.

These changes are inside the generated-code block; per guidelines, modifications must be made in the class-generator and regenerated rather than editing the output file. As per coding guidelines, please update the generator and regenerate.

@myakove
Copy link
Collaborator

myakove commented Jan 26, 2026

@jgarciao did you add it manually or update with class-generator?

Copy link
Collaborator

@rnetser rnetser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jgarciao did you use class generator to generate the updated resource?

@jgarciao
Copy link
Author

I updated the file manually, as following the process below didn't work for me. It is very likely that I'm missing some step, as it is the first time for me running this, but currently what happens is that the file ocp_resources/llama_stack_distribution.py is just reformatted but the new network field added in RHOAI 3.3 is not being added to the resource definition

Setup env:

git clone https://github.com/RedHatQE/openshift-python-wrapper.git
cd openshift-python-wrapper
uv sync
source .venv/bin/activate
oc login ...

This command modifies the existing file ocp_resources/llama_stack_distribution.py but it is just reformatting the imports section, the new "network" field added in RHOAI 3.3 is not being added

$ class-generator --kind LlamaStackDistribution --overwrite

2026-01-28T14:50:16.420276 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:50:16.838784 class_generator.core.generator INFO Generating class for LlamaStackDistribution
2026-01-28T14:50:16.854430 class_generator.core.generator WARNING Overwriting ocp_resources/llama_stack_distribution.py
2026-01-28T14:50:16.854595 pyhelper_utils.shell INFO Running uvx prek run --files ocp_resources/llama_stack_distribution.py command
2026-01-28T14:50:16.855748 class_generator.formatters.file_writer WARNING Prek hooks failed for ocp_resources/llama_stack_distribution.py. This is non-fatal and generation will continue.

I've tried also updating the schema and generating again the LlamaStackDistribution resource, but again, the new field wasn't added

$ class-generator --update-schema  
2026-01-28T14:53:42.821355 class_generator.cli INFO Updating resource schema...
2026-01-28T14:53:42.821491 pyhelper_utils.shell INFO Running which oc command
2026-01-28T14:53:42.822794 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:53:43.139059 pyhelper_utils.shell INFO Running oc version -o json command
2026-01-28T14:53:44.005080 class_generator.core.schema INFO Server version: v1.33.6
2026-01-28T14:53:44.005345 class_generator.core.schema INFO Cluster version is older. Identifying missing resources only - preserving existing resource schemas.
2026-01-28T14:53:44.005551 pyhelper_utils.shell INFO Running oc api-resources --no-headers command
2026-01-28T14:53:44.817646 class_generator.core.schema INFO Found 10 missing resources: ['ClusterTrainingRuntime', 'JobSet', 'JobSetOperator', 'MLflow', 'MLflowOperator', 'ModelsAsService', 'NemoGuardrails', 'PhysicalBackup', 'TrainJob', 'TrainingRuntime']
2026-01-28T14:53:44.817810 class_generator.core.schema INFO Fetching OpenAPI v3 index...
2026-01-28T14:53:44.817886 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3 command
2026-01-28T14:53:45.883873 class_generator.core.schema INFO Found 179 API groups to process
2026-01-28T14:53:45.884135 pyhelper_utils.shell INFO Running oc api-resources -o wide --no-headers command
2026-01-28T14:53:46.644108 class_generator.core.schema INFO Built dynamic resource-to-API mapping with 359 resource kinds
2026-01-28T14:53:46.644229 class_generator.core.schema INFO Processing missing resource: JobSetOperator
2026-01-28T14:53:46.644272 class_generator.core.schema INFO Processing missing resource: TrainingRuntime
2026-01-28T14:53:46.644303 class_generator.core.schema INFO Processing missing resource: PhysicalBackup
2026-01-28T14:53:46.644329 class_generator.core.schema INFO Processing missing resource: MLflow
2026-01-28T14:53:46.644354 class_generator.core.schema INFO Processing missing resource: MLflowOperator
2026-01-28T14:53:46.644378 class_generator.core.schema INFO Processing missing resource: TrainJob
2026-01-28T14:53:46.644402 class_generator.core.schema INFO Processing missing resource: ModelsAsService
2026-01-28T14:53:46.644425 class_generator.core.schema INFO Processing missing resource: ClusterTrainingRuntime
2026-01-28T14:53:46.644449 class_generator.core.schema INFO Processing missing resource: NemoGuardrails
2026-01-28T14:53:46.644471 class_generator.core.schema INFO Processing missing resource: JobSet
2026-01-28T14:53:46.644501 class_generator.core.schema INFO Identified 7 specific API paths for 10 missing resources: ['apis/components.platform.opendatahub.io/v1alpha1', 'apis/jobset.x-k8s.io/v1alpha2', 'apis/k8s.mariadb.com/v1alpha1', 'apis/mlflow.opendatahub.io/v1', 'apis/operator.openshift.io/v1', 'apis/trainer.kubeflow.org/v1alpha1', 'apis/trustyai.opendatahub.io/v1alpha1']
2026-01-28T14:53:46.644551 class_generator.core.schema INFO Filtering to 7 specific API paths out of 179 total
2026-01-28T14:53:46.644848 class_generator.core.schema INFO Processing apis/components.platform.opendatahub.io/v1alpha1...
2026-01-28T14:53:46.645243 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/components.platform.opendatahub.io/v1alpha1?hash=FDEC30EAA8C48AF106F9B22A4EACB8A6CE57020889A511CECDA904AF94B59128FAA597C311D1D0B6C7415EAE31729486FC9285443440A56898A0BC82249F2989 command
2026-01-28T14:53:46.645429 class_generator.core.schema INFO Processing apis/jobset.x-k8s.io/v1alpha2...
2026-01-28T14:53:46.645869 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/jobset.x-k8s.io/v1alpha2?hash=FEEACFEF134F67319F56CCFFC565E41F25665B276DBEED52FBE8E636C7E0875F597A02A8A33007BE697F6EA45D2081110377E0B9C868D91EFA0DBD3F82CD7F43 command
2026-01-28T14:53:46.646004 class_generator.core.schema INFO Processing apis/k8s.mariadb.com/v1alpha1...
2026-01-28T14:53:46.646556 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/k8s.mariadb.com/v1alpha1?hash=8EBD853FB05582FF915DD5A47D0AAB2B7981BA7AE4E3C9CD0181B316D62847CA0B393778E1852328915477E0ABBE8765A986F2C2D0D4196C06D50E639DE89410 command
2026-01-28T14:53:46.646752 class_generator.core.schema INFO Processing apis/mlflow.opendatahub.io/v1...
2026-01-28T14:53:46.647715 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/mlflow.opendatahub.io/v1?hash=C9E5369E1E6D21A0E333A46439DC9DDD583419B0962A0CED9DC25D20CF8246BB0FF78A7D4040A970B7B286D180D5C63AFC0FC18389C7AEC18B6ACB689E2B6961 command
2026-01-28T14:53:46.647276 class_generator.core.schema INFO Processing apis/operator.openshift.io/v1...
2026-01-28T14:53:46.648456 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/operator.openshift.io/v1?hash=25491CA817BAC15D2457CD9FF31E0E68A0C52F30DF6C8C8907A4D64F02EB9FEFE8E3B83B27F1AAB39F7310F3DC3E7E918C8C746363FFB19694F426E9B3F8C7FA command
2026-01-28T14:53:46.647447 class_generator.core.schema INFO Processing apis/trainer.kubeflow.org/v1alpha1...
2026-01-28T14:53:46.648949 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/trainer.kubeflow.org/v1alpha1?hash=43D87477A77EAFA156041A739E790C85768F4E270454A555CCAFD727C7796269182CCFB2CC5EACE3729BCF1DFBD8327E6B838998FF0263C3E1CCBA5820538078 command
2026-01-28T14:53:46.648090 class_generator.core.schema INFO Processing apis/trustyai.opendatahub.io/v1alpha1...
2026-01-28T14:53:46.649551 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/trustyai.opendatahub.io/v1alpha1?hash=05706414BA4B4B350330FD4A219A9D59D7C0CEE6BFC325B87A9A379C60A9D0A25B4AFD750C62260710019EC8E3A525CBED3F414222D7501255E284D2380EA0B2 command
2026-01-28T14:53:55.839292 class_generator.core.schema INFO Fetched 7 schemas for missing resources instead of all 179 schemas
2026-01-28T14:53:55.839549 pyhelper_utils.shell INFO Running oc api-resources --namespaced=true --no-headers command
2026-01-28T14:53:56.685341 pyhelper_utils.shell INFO Running oc api-resources --namespaced=false --no-headers command
2026-01-28T14:53:57.574312 class_generator.core.schema INFO Built namespacing dictionary with 359 resources
2026-01-28T14:53:57.574470 class_generator.core.schema INFO Starting with 1371 existing resource types - preserving all
2026-01-28T14:53:57.642356 class_generator.core.schema INFO Loaded 898 existing definitions to preserve
2026-01-28T14:53:57.642755 class_generator.core.schema INFO Schema processing complete:
2026-01-28T14:53:57.642810 class_generator.core.schema INFO   - Started with: 1371 resource types
2026-01-28T14:53:57.642847 class_generator.core.schema INFO   - Added new: 29 resource types
2026-01-28T14:53:57.642878 class_generator.core.schema INFO   - Updated: 0 resource schemas
2026-01-28T14:53:57.642904 class_generator.core.schema INFO   - Final total: 1400 resource types
2026-01-28T14:53:57.642929 class_generator.core.schema INFO   - Processed: 29 unique schemas
2026-01-28T14:53:57.642954 class_generator.core.schema INFO   - NEVER DELETED any existing resources
2026-01-28T14:53:57.663059 class_generator.core.schema INFO Detected 126 missing $ref definitions
2026-01-28T14:53:57.663295 class_generator.core.schema INFO Skipping schema supplementation due to older cluster version - preserving existing schema data
2026-01-28T14:53:57.961444 class_generator.core.schema INFO Written 927 definitions to class_generator/schema/_definitions.json
2026-01-28T14:53:59.385764 ocp_resources.utils.archive_utils INFO Saved and archived: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:53:59.385935 class_generator.core.schema INFO Schema processing completed successfully


$ class-generator --kind LlamaStackDistribution --overwrite
2026-01-28T15:01:08.094946 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T15:01:08.543850 class_generator.core.generator INFO Generating class for LlamaStackDistribution
2026-01-28T15:01:08.559235 class_generator.core.generator WARNING Overwriting ocp_resources/llama_stack_distribution.py
2026-01-28T15:01:08.559430 pyhelper_utils.shell INFO Running uvx prek run --files ocp_resources/llama_stack_distribution.py command
2026-01-28T15:01:08.560679 class_generator.formatters.file_writer WARNING Prek hooks failed for ocp_resources/llama_stack_distribution.py. This is non-fatal and generation will continue.

@rnetser
Copy link
Collaborator

rnetser commented Jan 28, 2026

I updated the file manually, as following the process below didn't work for me. It is very likely that I'm missing some step, as it is the first time for me running this, but currently what happens is that the file ocp_resources/llama_stack_distribution.py is just reformatted but the new network field added in RHOAI 3.3 is not being added to the resource definition

Setup env:

git clone https://github.com/RedHatQE/openshift-python-wrapper.git
cd openshift-python-wrapper
uv sync
source .venv/bin/activate
oc login ...

This command modifies the existing file ocp_resources/llama_stack_distribution.py but it is just reformatting the imports section, the new "network" field added in RHOAI 3.3 is not being added

$ class-generator --kind LlamaStackDistribution --overwrite

2026-01-28T14:50:16.420276 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:50:16.838784 class_generator.core.generator INFO Generating class for LlamaStackDistribution
2026-01-28T14:50:16.854430 class_generator.core.generator WARNING Overwriting ocp_resources/llama_stack_distribution.py
2026-01-28T14:50:16.854595 pyhelper_utils.shell INFO Running uvx prek run --files ocp_resources/llama_stack_distribution.py command
2026-01-28T14:50:16.855748 class_generator.formatters.file_writer WARNING Prek hooks failed for ocp_resources/llama_stack_distribution.py. This is non-fatal and generation will continue.

I've tried also updating the schema and generating again the LlamaStackDistribution resource, but again, the new field wasn't added

$ class-generator --update-schema  
2026-01-28T14:53:42.821355 class_generator.cli INFO Updating resource schema...
2026-01-28T14:53:42.821491 pyhelper_utils.shell INFO Running which oc command
2026-01-28T14:53:42.822794 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:53:43.139059 pyhelper_utils.shell INFO Running oc version -o json command
2026-01-28T14:53:44.005080 class_generator.core.schema INFO Server version: v1.33.6
2026-01-28T14:53:44.005345 class_generator.core.schema INFO Cluster version is older. Identifying missing resources only - preserving existing resource schemas.
2026-01-28T14:53:44.005551 pyhelper_utils.shell INFO Running oc api-resources --no-headers command
2026-01-28T14:53:44.817646 class_generator.core.schema INFO Found 10 missing resources: ['ClusterTrainingRuntime', 'JobSet', 'JobSetOperator', 'MLflow', 'MLflowOperator', 'ModelsAsService', 'NemoGuardrails', 'PhysicalBackup', 'TrainJob', 'TrainingRuntime']
2026-01-28T14:53:44.817810 class_generator.core.schema INFO Fetching OpenAPI v3 index...
2026-01-28T14:53:44.817886 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3 command
2026-01-28T14:53:45.883873 class_generator.core.schema INFO Found 179 API groups to process
2026-01-28T14:53:45.884135 pyhelper_utils.shell INFO Running oc api-resources -o wide --no-headers command
2026-01-28T14:53:46.644108 class_generator.core.schema INFO Built dynamic resource-to-API mapping with 359 resource kinds
2026-01-28T14:53:46.644229 class_generator.core.schema INFO Processing missing resource: JobSetOperator
2026-01-28T14:53:46.644272 class_generator.core.schema INFO Processing missing resource: TrainingRuntime
2026-01-28T14:53:46.644303 class_generator.core.schema INFO Processing missing resource: PhysicalBackup
2026-01-28T14:53:46.644329 class_generator.core.schema INFO Processing missing resource: MLflow
2026-01-28T14:53:46.644354 class_generator.core.schema INFO Processing missing resource: MLflowOperator
2026-01-28T14:53:46.644378 class_generator.core.schema INFO Processing missing resource: TrainJob
2026-01-28T14:53:46.644402 class_generator.core.schema INFO Processing missing resource: ModelsAsService
2026-01-28T14:53:46.644425 class_generator.core.schema INFO Processing missing resource: ClusterTrainingRuntime
2026-01-28T14:53:46.644449 class_generator.core.schema INFO Processing missing resource: NemoGuardrails
2026-01-28T14:53:46.644471 class_generator.core.schema INFO Processing missing resource: JobSet
2026-01-28T14:53:46.644501 class_generator.core.schema INFO Identified 7 specific API paths for 10 missing resources: ['apis/components.platform.opendatahub.io/v1alpha1', 'apis/jobset.x-k8s.io/v1alpha2', 'apis/k8s.mariadb.com/v1alpha1', 'apis/mlflow.opendatahub.io/v1', 'apis/operator.openshift.io/v1', 'apis/trainer.kubeflow.org/v1alpha1', 'apis/trustyai.opendatahub.io/v1alpha1']
2026-01-28T14:53:46.644551 class_generator.core.schema INFO Filtering to 7 specific API paths out of 179 total
2026-01-28T14:53:46.644848 class_generator.core.schema INFO Processing apis/components.platform.opendatahub.io/v1alpha1...
2026-01-28T14:53:46.645243 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/components.platform.opendatahub.io/v1alpha1?hash=FDEC30EAA8C48AF106F9B22A4EACB8A6CE57020889A511CECDA904AF94B59128FAA597C311D1D0B6C7415EAE31729486FC9285443440A56898A0BC82249F2989 command
2026-01-28T14:53:46.645429 class_generator.core.schema INFO Processing apis/jobset.x-k8s.io/v1alpha2...
2026-01-28T14:53:46.645869 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/jobset.x-k8s.io/v1alpha2?hash=FEEACFEF134F67319F56CCFFC565E41F25665B276DBEED52FBE8E636C7E0875F597A02A8A33007BE697F6EA45D2081110377E0B9C868D91EFA0DBD3F82CD7F43 command
2026-01-28T14:53:46.646004 class_generator.core.schema INFO Processing apis/k8s.mariadb.com/v1alpha1...
2026-01-28T14:53:46.646556 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/k8s.mariadb.com/v1alpha1?hash=8EBD853FB05582FF915DD5A47D0AAB2B7981BA7AE4E3C9CD0181B316D62847CA0B393778E1852328915477E0ABBE8765A986F2C2D0D4196C06D50E639DE89410 command
2026-01-28T14:53:46.646752 class_generator.core.schema INFO Processing apis/mlflow.opendatahub.io/v1...
2026-01-28T14:53:46.647715 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/mlflow.opendatahub.io/v1?hash=C9E5369E1E6D21A0E333A46439DC9DDD583419B0962A0CED9DC25D20CF8246BB0FF78A7D4040A970B7B286D180D5C63AFC0FC18389C7AEC18B6ACB689E2B6961 command
2026-01-28T14:53:46.647276 class_generator.core.schema INFO Processing apis/operator.openshift.io/v1...
2026-01-28T14:53:46.648456 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/operator.openshift.io/v1?hash=25491CA817BAC15D2457CD9FF31E0E68A0C52F30DF6C8C8907A4D64F02EB9FEFE8E3B83B27F1AAB39F7310F3DC3E7E918C8C746363FFB19694F426E9B3F8C7FA command
2026-01-28T14:53:46.647447 class_generator.core.schema INFO Processing apis/trainer.kubeflow.org/v1alpha1...
2026-01-28T14:53:46.648949 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/trainer.kubeflow.org/v1alpha1?hash=43D87477A77EAFA156041A739E790C85768F4E270454A555CCAFD727C7796269182CCFB2CC5EACE3729BCF1DFBD8327E6B838998FF0263C3E1CCBA5820538078 command
2026-01-28T14:53:46.648090 class_generator.core.schema INFO Processing apis/trustyai.opendatahub.io/v1alpha1...
2026-01-28T14:53:46.649551 pyhelper_utils.shell INFO Running oc get --raw /openapi/v3/apis/trustyai.opendatahub.io/v1alpha1?hash=05706414BA4B4B350330FD4A219A9D59D7C0CEE6BFC325B87A9A379C60A9D0A25B4AFD750C62260710019EC8E3A525CBED3F414222D7501255E284D2380EA0B2 command
2026-01-28T14:53:55.839292 class_generator.core.schema INFO Fetched 7 schemas for missing resources instead of all 179 schemas
2026-01-28T14:53:55.839549 pyhelper_utils.shell INFO Running oc api-resources --namespaced=true --no-headers command
2026-01-28T14:53:56.685341 pyhelper_utils.shell INFO Running oc api-resources --namespaced=false --no-headers command
2026-01-28T14:53:57.574312 class_generator.core.schema INFO Built namespacing dictionary with 359 resources
2026-01-28T14:53:57.574470 class_generator.core.schema INFO Starting with 1371 existing resource types - preserving all
2026-01-28T14:53:57.642356 class_generator.core.schema INFO Loaded 898 existing definitions to preserve
2026-01-28T14:53:57.642755 class_generator.core.schema INFO Schema processing complete:
2026-01-28T14:53:57.642810 class_generator.core.schema INFO   - Started with: 1371 resource types
2026-01-28T14:53:57.642847 class_generator.core.schema INFO   - Added new: 29 resource types
2026-01-28T14:53:57.642878 class_generator.core.schema INFO   - Updated: 0 resource schemas
2026-01-28T14:53:57.642904 class_generator.core.schema INFO   - Final total: 1400 resource types
2026-01-28T14:53:57.642929 class_generator.core.schema INFO   - Processed: 29 unique schemas
2026-01-28T14:53:57.642954 class_generator.core.schema INFO   - NEVER DELETED any existing resources
2026-01-28T14:53:57.663059 class_generator.core.schema INFO Detected 126 missing $ref definitions
2026-01-28T14:53:57.663295 class_generator.core.schema INFO Skipping schema supplementation due to older cluster version - preserving existing schema data
2026-01-28T14:53:57.961444 class_generator.core.schema INFO Written 927 definitions to class_generator/schema/_definitions.json
2026-01-28T14:53:59.385764 ocp_resources.utils.archive_utils INFO Saved and archived: class_generator/schema/__resources-mappings.json.gz
2026-01-28T14:53:59.385935 class_generator.core.schema INFO Schema processing completed successfully


$ class-generator --kind LlamaStackDistribution --overwrite
2026-01-28T15:01:08.094946 ocp_resources.utils.archive_utils INFO Loading JSON from archive: class_generator/schema/__resources-mappings.json.gz
2026-01-28T15:01:08.543850 class_generator.core.generator INFO Generating class for LlamaStackDistribution
2026-01-28T15:01:08.559235 class_generator.core.generator WARNING Overwriting ocp_resources/llama_stack_distribution.py
2026-01-28T15:01:08.559430 pyhelper_utils.shell INFO Running uvx prek run --files ocp_resources/llama_stack_distribution.py command
2026-01-28T15:01:08.560679 class_generator.formatters.file_writer WARNING Prek hooks failed for ocp_resources/llama_stack_distribution.py. This is non-fatal and generation will continue.

when you run oc explain LlamaStackDistribution.spec on the cluster you use to update the resource, do you see this field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants