Skip to content

feat(gkehub): support GKEHubScope and GKEHubNamespace#6843

Open
codebot-robot wants to merge 11 commits intoGoogleCloudPlatform:masterfrom
codebot-robot:issue_6052
Open

feat(gkehub): support GKEHubScope and GKEHubNamespace#6843
codebot-robot wants to merge 11 commits intoGoogleCloudPlatform:masterfrom
codebot-robot:issue_6052

Conversation

@codebot-robot
Copy link
Collaborator

This PR adds support for GKE Hub Scope and GKEHubNamespace resources using the Direct controller architecture.

It addresses the following issues:

This is a replacement for #6519, which was stale and from a fork that was hard to update.

Summary of changes:

  • API types and CRDs for GKEHubScope and GKEHubNamespace
  • Direct controllers for both resources in pkg/controller/direct/gkehub
  • Mock implementation in mockgcp/mockgkehub
  • Registration of the mock service and controller
  • Test fixtures for validation in pkg/test/resourcefixture/testdata
  • Fixes for lint and build failures discovered during development

fkc1e100 and others added 10 commits February 27, 2026 21:58
This PR adds support for GKE Hub Scope and GKEHubNamespace resources
using the Direct controller architecture. It includes:
- API types and CRDs for GKEHubScope and GKEHubNamespace
- Direct controllers for both resources
- Mock implementation in mockgcp
- Test fixtures for validation
- Fix string formatting verbs in gkehub controllers (govet)
- Delete redundant duplicate protos from mockgcp/apis/google to resolve protoc shadowing errors
- Remove conflicting generated proto file from mockgcp/third_party via fixup-third-party.sh
- Run make gen-proto to cleanly regenerate mockgcp protos with correct copyright headers
- Run dev/tasks/generate-resource-report to update documentation
- Fix fmt.Errorf format strings in GKEHub controllers.
- Add missing 2026 copyright headers to service.proto and test fixtures.
- Rename GKEHub test fixtures to be unique (gkehubscope-basic, gkehubnamespace-basic).
- Improve GKEHubScope and GKEHubNamespace controllers to be idempotent.
- Sync mockgcp dependencies.
@google-oss-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yuwenma for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

[Fleets/Teams] Support for GKE Fleet Namespaces (GKEHubNamespace) [Fleets/Teams] Support for GKE Fleet Scopes (GKEHubScope)

2 participants