Describe the bug
Resources such as Endpoints or GitRepositories that use a projectRef to reference a TeamProject resource expect a mandatory namespace parameter.
However, the TeamProject CRD are cluster scoped.
To Reproduce
Steps to reproduce the behavior:
Create a TeamProject resource
Create an Endpoint resource with projectRef containing the name of the TeamProject resource, but omitting the namespace attribute
Check events for the composition. The composition fails with an error such as
Endpoint.azuredevops.krateo.io "xyz" is invalid: spec.projectRef.namespace: Required value
Expected behavior
ProjectRef blocks for CRDs must only accept the TeamProject resource name and not even allow a namespace attribute.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Just discovered the same issue applies to pipelines and repositories references using the pipelineRef, resourceRef and repositoryRef blocks. All allow and require a namespace attribute.
Describe the bug Resources such as Endpoints or GitRepositories that use a projectRef to reference a TeamProject resource expect a mandatory namespace parameter. However, the TeamProject CRD are cluster scoped.
To Reproduce Steps to reproduce the behavior:
Expected behavior ProjectRef blocks for CRDs must only accept the TeamProject resource name and not even allow a namespace attribute.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.