Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/cloudzero-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5831,6 +5831,12 @@
"image": {
"$ref": "#/$defs/com.cloudzero.agent.image"
},
"repository":{
"type": ["string", "null"]
},
"tag":{
"type": ["string", "null"]
},
Comment on lines +5834 to +5839
Copy link

Choose a reason for hiding this comment

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

style: These properties may be at the incorrect nesting level. The generateImage template helper (templates/_helpers.tpl:770-789) is always called with defaults parameter set to .Values.defaults.image. This means repository and tag are accessed from the image object, where they already exist via the $ref to com.cloudzero.agent.image. Adding them directly under defaults appears redundant unless users need to set them outside of defaults.image.

Prompt To Fix With AI
This is a comment left during a code review.
Path: charts/cloudzero-agent/values.schema.json
Line: 5834:5839

Comment:
**style:** These properties may be at the incorrect nesting level. The `generateImage` template helper (templates/_helpers.tpl:770-789) is always called with `defaults` parameter set to `.Values.defaults.image`. This means `repository` and `tag` are accessed from the image object, where they already exist via the `$ref` to `com.cloudzero.agent.image`. Adding them directly under `defaults` appears redundant unless users need to set them outside of `defaults.image`.

How can I resolve this? If you propose a fix, please make it concise.

"labels": {
"$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/labels"
},
Expand Down