feat(fleetcontrol): add new package with fleet, fleet members CRUD ops#1360
Merged
pranav-new-relic merged 17 commits intomainfrom Feb 19, 2026
Merged
feat(fleetcontrol): add new package with fleet, fleet members CRUD ops#1360pranav-new-relic merged 17 commits intomainfrom
pranav-new-relic merged 17 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1360 +/- ##
==========================================
- Coverage 33.04% 31.55% -1.49%
==========================================
Files 136 139 +3
Lines 6256 6576 +320
==========================================
+ Hits 2067 2075 +8
- Misses 3990 4301 +311
- Partials 199 200 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6bd9ace to
17cdad9
Compare
❌ Invalid Conventional Commits DetectedThe following commits do not follow the Conventional Commits format: 3e0530c - Merge branch 'main' into fleet-control-starts-here Please update these commit messages to follow the format: Valid types: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test |
- Update fleet deployment mutation to support agent input updates - Add custom unmarshaller for fleet control operating system - Restore synthetics automated test struct tags configuration - Merge latest changes from main branch
3e0530c to
e9eb6c0
Compare
Address errcheck lint error by explicitly ignoring the Close() error in deferred function call.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This branch introduces a comprehensive Fleet Control feature to the New Relic Go client library, enabling programmatic management of fleet deployments, agent configurations, and fleet member operations through the New Relic platform.
Key Features Added
1. Fleet Control Package (
pkg/fleetcontrol)A new package providing complete CRUD operations for managing fleets of infrastructure entities.
Core Capabilities:
Fleet Management
Fleet Deployments
fleetControlDeployConfiguration Management (Blob Service Integration)
Key Files:
fleetcontrol.go- Core client initializationfleetcontrol_api.go- NerdGraph API mutations and queries (1,275 lines)fleetcontrol_configurations.go- Blob service integration for configurations (305 lines)types.go- Comprehensive type definitions (10,130 lines)Technical Changes
2. Tutone Configuration (
.tutone.yml)Added complete package configuration for code generation:
Mutations:
fleetControlCreateFleetfleetControlUpdateFleetfleetControlDeleteFleetfleetControlAddFleetMembersfleetControlRemoveFleetMembersfleetControlCreateFleetDeploymentfleetControlUpdateFleetDeploymentfleetControlDeleteFleetDeploymentfleetControlDeployQueries:
actor.fleetControl.fleetMembers- Query fleet members with filtersactor.entityManagement.entity- Entity lookupsactor.entityManagement.entitySearch- Entity search capabilitiesType Overrides:
FleetControlFleetMembersFilterInput- Pointer type for optional filteringFleetControlOperatingSystemCreateInput- Optional OS specification3. HTTP Client Enhancements (
internal/http/client.go)DoRequestWithCustomMethodfunction for blob service REST API calls4. Region Support (
pkg/region/region.go)BlobServiceURL()method for constructing blob service endpointshttps://blob.service.newrelic.com5. Client Integration (
newrelic/newrelic.go)Fleetcontrolpackage in main New Relic clientclient.Fleetcontrolfor all SDK usersAPI Operations Summary
Fleet Operations
Deployment Operations
Configuration Operations (Blob Service)