Skip to content

Conversation

mrajagopal
Copy link
Collaborator

Proposed changes

As part of the iHealth integration, the manifest now includes these additional information:

  • platform_type
  • build
  • serial_number
  • hostname

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING guide
  • I have proven my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have ensured the README is up to date
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch on my own fork

@mrajagopal mrajagopal linked an issue Oct 9, 2025 that may be closed by this pull request
@mrajagopal mrajagopal requested review from Copilot and dareste October 9, 2025 01:08
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Enhances the iHealth integration by adding platform and product information to the manifest. The changes collect platform-specific metadata (platform type, build, serial number, hostname) and product details from NGINX Ingress Controller pods, storing this information in JSON files that are then included in the generated manifest.

  • Adds collection of platform information (OS, architecture, hostnames) from Kubernetes nodes
  • Implements parsing of NGINX Ingress Controller version and build information
  • Updates manifest generation to include collected platform and product data

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
pkg/jobs/nic_job_list.go Adds product info collection job and parsing function for NGINX Ingress Controller version data
pkg/jobs/common_job_list.go Extends node collection to extract platform information including OS details and hostnames
pkg/data_collector/data_collector.go Updates data structures and manifest generation to include platform and product information

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

mrajagopal and others added 3 commits October 9, 2025 14:16
Potential panic if hostnames slice is empty. Should check len(hostnames) > 0 before accessing hostnames[0].

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Empty error handling with only a comment. Should either handle the error appropriately or remove the empty block.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Using log.Fatalf will terminate the entire program if product_info.json doesn't exist. Should handle the error gracefully and continue with default values instead of crashing.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mrajagopal mrajagopal requested a review from Copilot October 9, 2025 01:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nginx nginx deleted a comment from Copilot AI Oct 9, 2025
mrajagopal and others added 3 commits October 9, 2025 14:36
The jsonResult variable contains marshaled data from the result variable, but then it's being unmarshaled back into a NodeList. This is unnecessary - the original result should be used directly since it's already a NodeList type.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mrajagopal mrajagopal requested a review from Copilot October 9, 2025 01:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nginx nginx deleted a comment from Copilot AI Oct 9, 2025
@nginx nginx deleted a comment from Copilot AI Oct 9, 2025
@nginx nginx deleted a comment from Copilot AI Oct 9, 2025
mrajagopal and others added 5 commits October 10, 2025 10:53
Remove superfluous log message introduced by co-pilot review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Check the existence of the `control-plane` label to confirm that it is the control node.

Co-authored-by: Daniel Aresté <5310624+dareste@users.noreply.github.com>
Minor camel case fix

Co-authored-by: Daniel Aresté <5310624+dareste@users.noreply.github.com>
@mrajagopal mrajagopal requested a review from dareste October 9, 2025 23:45
Copy link
Collaborator

@dareste dareste left a comment

Choose a reason for hiding this comment

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

LGTM

@dareste dareste merged commit ae0ffa3 into main Oct 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional info to include in manifest.json

2 participants