Conversation
There was a problem hiding this comment.
Pull request overview
Updates the ModelArtifact API/CRD documentation to reflect a different convention for providing OCI registry credentials via a referenced Kubernetes Secret.
Changes:
- Update
credentialsSecretRefdocumentation to referencekubernetes.io/dockerconfigjsonSecrets for OCI auth. - Simplify
SecretReferencedoc comment to be generic (no longer describing fixed key conventions).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| model/v1alpha1/modelartifact_types.go | Updates Go type comments for OCI credentials Secret and SecretReference. |
| config/crd/bases/model.otterscale.io_modelartifacts.yaml | Regenerates/updates CRD schema description to match the new OCI credentials Secret wording. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // containing OCI registry credentials. The Secret is mounted into the Job Pod | ||
| // at /.docker/config.json so that kit push authenticates automatically. |
There was a problem hiding this comment.
The new field description is very implementation-specific ("mounted into the Job Pod at /.docker/config.json" and referencing "kit push"). Since this repo defines the API/CRD (not the controller implementation), this wording is likely to become stale or be inaccurate across implementations. Consider describing only the contract: the Secret should be of type kubernetes.io/dockerconfigjson and contain a valid Docker config JSON (typically in the ".dockerconfigjson" data key) that the controller will use for registry auth, without hard-coding mount paths/tooling.
| // containing OCI registry credentials. The Secret is mounted into the Job Pod | |
| // at /.docker/config.json so that kit push authenticates automatically. | |
| // containing OCI registry credentials. The Secret must contain a valid | |
| // Docker config JSON (typically in the ".dockerconfigjson" data key) that | |
| // the controller uses for registry authentication. |
| containing OCI registry credentials. The Secret is mounted into the Job Pod | ||
| at /.docker/config.json so that kit push authenticates automatically. |
There was a problem hiding this comment.
CRD schema description includes controller implementation details (mount path "/.docker/config.json" and "kit push"). To keep the CRD contract stable and accurate, prefer describing only what the Secret must contain (docker config JSON for registry auth; usually the ".dockerconfigjson" key for kubernetes.io/dockerconfigjson Secrets) rather than how a specific controller mounts/uses it.
| containing OCI registry credentials. The Secret is mounted into the Job Pod | |
| at /.docker/config.json so that kit push authenticates automatically. | |
| containing docker config JSON for OCI registry authentication (typically | |
| stored under the ".dockerconfigjson" key). |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the clarity and specificity of documentation for OCI registry credentials within the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the descriptions for CredentialsSecretRef in the CRD YAML and the Go type definitions. The new description clarifies that the secret must be of type kubernetes.io/dockerconfigjson and explains its usage for authentication within the Job Pod. The comment for the generic SecretReference type has also been updated to remove specific details that are no longer universally applicable. The changes are consistent across both files and improve documentation clarity.
…ypes