Skip to content

Conversation

@robnester-rh
Copy link
Contributor

This PR is a first pass at migrating the CRDs from the enterprise-contract/enterprise-contract-controller repository.

This commit is the initial migration of the CRDs from
`enterprise-contract/enterprise-contract-controller` to this repo.

Assisted-by: claude-4-sonnet
Ref: EC-1316
Signed-off-by: Rob Nester <rnester@redhat.com>
This commit updates the github workflows to integrate the migrated CRDs.
Additionally, the makefile was updated as appropriate.

Assisted-by: claude-4-sonnet
Ref: EC-1316
Signed-off-by: Rob Nester <rnester@redhat.com>
This commit updates the version of go specified in the `schema/go.mod`
and `tools/crd/go.mod` files from `1.23.6` to `1.24.4` to provide
consistency across all go modules in the project.

Ref: EC-1316
Signed-off-by: Rob Nester <rnester@redhat.com>
@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

❌ Patch coverage is 0.82645% with 240 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/v1alpha1/zz_generated.deepcopy.go 0.00% 188 Missing ⚠️
schema/export.go 0.00% 52 Missing ⚠️
Flag Coverage Δ
crd 66.82% <ø> (?)
crd-api 65.46% <1.05%> (?)
crd-schema 66.44% <0.00%> (?)
generative 66.82% <ø> (-1.92%) ⬇️
integration 66.82% <ø> (-1.92%) ⬇️
unit 66.82% <ø> (-1.92%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
api/v1alpha1/enterprisecontractpolicy_types.go 100.00% <100.00%> (ø)
schema/export.go 0.00% <0.00%> (ø)
api/v1alpha1/zz_generated.deepcopy.go 0.00% <0.00%> (ø)

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This commit updates license headers where appropriate for merged CRD
related files.

Ref: EC-1316
Signed-off-by: Rob Nester <rnester@redhat.com>
This commit updates the crd-schema workflow.

Ref: EC-1316
Signed-off-by: Rob Nester <rnester@redhat.com>
for f in $(git diff --exit-code --name-only); do
echo "::error file=$f,line=1,col=1,endColumn=1::File was modified in build"
done
git status --porcelain
Copy link
Contributor

Choose a reason for hiding this comment

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

I see this replaces the existing check. Is that ok, and should we now run make all when this check is triggered?

@@ -0,0 +1,21 @@
# Copyright The Conforma Contributors
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this file is missing some content. Here is the original.

$ cat kustomization.yaml 
# This kustomization.yaml is not intended to be run by itself,
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources:
- bases/appstudio.redhat.com_enterprisecontractpolicies.yaml
- enterprisecontractpolicy_editor_role.yaml
- enterprisecontractpolicy_viewer_role.yaml
- openshift_console_example.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_enterprisecontractpolicies.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml

@robnester-rh robnester-rh marked this pull request as draft August 7, 2025 14:11
@robnester-rh
Copy link
Contributor Author

This is being closed as the underlying story has changed. The CRDs will be migrated to their own repository per team discussions.

@robnester-rh robnester-rh deleted the EC-1316 branch August 18, 2025 12:56
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.

2 participants