docs: remove misleading publishConnectionDetailsTo references (#266)#391
Merged
Merged
Conversation
publishConnectionDetailsTo is a Crossplane v1 feature (External Secret Stores) and does not exist in the Crossplane v2 managed-resource spec this provider uses: neither ManagedResourceSpec (namespaced) nor ClusterManagedResourceSpec expose it - only writeConnectionSecretToRef. Setting publishConnectionDetailsTo is silently pruned by the API server, so the docs/errors claiming it can be used to receive the token were misleading. Remove the "or publishConnectionDetailsTo" wording from: - Runner Kind doc comments (project/group/instance) -> reflected in the CRD descriptions - the License Kind doc comment - the errMissingConnectionSecret message in the three runner controllers Regenerated the cluster (zz_) mirrors and CRDs. No schema changes. Closes #266 Signed-off-by: Markus Siebert <markus.siebert@deutschebahn.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #266 by removing misleading references to publishConnectionDetailsTo (a Crossplane v1 feature) from this provider’s docs and user-facing error messages, aligning the repository with Crossplane v2 managed-resource behavior (i.e., only writeConnectionSecretToRef applies).
Changes:
- Updated runner controller validation error messages to require
writeConnectionSecretToRef(removing “or publishConnectionDetailsTo”). - Updated Runner and License API type doc comments to remove
publishConnectionDetailsToreferences and regenerated cluster (zz_) mirrors. - Regenerated CRD description text to reflect the corrected guidance (description-only changes).
Reviewed changes
Copilot reviewed 15 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/namespaced/controller/projects/runners/controller.go | Updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| pkg/namespaced/controller/instance/runners/controller.go | Updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| pkg/namespaced/controller/groups/runners/controller.go | Updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| pkg/cluster/controller/projects/runners/zz_controller.go | Regenerated mirror: updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| pkg/cluster/controller/instance/runners/zz_controller.go | Regenerated mirror: updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| pkg/cluster/controller/groups/runners/zz_controller.go | Regenerated mirror: updates missing-connection-secret error message to reference only writeConnectionSecretToRef. |
| package/crds/projects.gitlab.m.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/projects.gitlab.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/instance.gitlab.m.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/instance.gitlab.m.crossplane.io_licenses.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/instance.gitlab.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/instance.gitlab.crossplane.io_licenses.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/groups.gitlab.m.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| package/crds/groups.gitlab.crossplane.io_runners.yaml | CRD description text updated to remove publishConnectionDetailsTo guidance. |
| apis/namespaced/projects/v1alpha1/runner_types.go | Runner doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/namespaced/instance/v1alpha1/runner_types.go | Runner doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/namespaced/instance/v1alpha1/license_types.go | License doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/namespaced/groups/v1alpha1/runner_types.go | Runner doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/cluster/projects/v1alpha1/zz_runner_types.go | Regenerated mirror: Runner doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/cluster/instance/v1alpha1/zz_runner_types.go | Regenerated mirror: Runner doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/cluster/instance/v1alpha1/zz_license_types.go | Regenerated mirror: License doc comment updated to remove publishConnectionDetailsTo reference. |
| apis/cluster/groups/v1alpha1/zz_runner_types.go | Regenerated mirror: Runner doc comment updated to remove publishConnectionDetailsTo reference. |
Files not reviewed (7)
- apis/cluster/groups/v1alpha1/zz_runner_types.go: Generated file
- apis/cluster/instance/v1alpha1/zz_license_types.go: Generated file
- apis/cluster/instance/v1alpha1/zz_runner_types.go: Generated file
- apis/cluster/projects/v1alpha1/zz_runner_types.go: Generated file
- pkg/cluster/controller/groups/runners/zz_controller.go: Generated file
- pkg/cluster/controller/instance/runners/zz_controller.go: Generated file
- pkg/cluster/controller/projects/runners/zz_controller.go: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dariozachow
approved these changes
Jul 8, 2026
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.
What this does
Fixes #266 by removing the misleading
publishConnectionDetailsToreferences.publishConnectionDetailsTois a Crossplane v1 feature (backed by the alpha External Secret Stores mechanism). It does not exist in the Crossplane v2 managed-resource spec this provider uses — neitherManagedResourceSpec(namespaced) norClusterManagedResourceSpecexpose it; both only havewriteConnectionSecretToRef. SettingpublishConnectionDetailsTois therefore silently pruned by the API server (no error, no effect), which is what the issue observed.Since the field cannot be supported on Crossplane v2, this takes the "delete the misleading comments" path from the issue's Definition of Done.
Changes
... or publishConnectionDetailsTowording from:errMissingConnectionSecretmessage in the three runner controllerszz_) mirrors and CRDs. No schema changes (description text only).Testing
go build ./..., fullgo test ./..., andgolangci-lintall pass.