Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api v1alpha4 #414

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Api v1alpha4 #414

merged 8 commits into from
Nov 14, 2024

Conversation

bdevcich
Copy link
Contributor

No description provided.

Create v1alpha4 APIs.

This used "kubebuilder create api --resource --controller=false"
for each API.

Signed-off-by: Blake Devcich <[email protected]>
Copy API content from v1alpha3 to v1alpha4.

Move the kubebuilder:storageversion marker from v1alpha3 to v1alpha4.

Set localSchemeBuilder var in api/v1alpha3/groupversion_info.go
to satisfy zz_generated.conversion.go.

Signed-off-by: Blake Devcich <[email protected]>
Move the existing webhooks from v1alpha3 to v1alpha4.

Signed-off-by: Blake Devcich <[email protected]>
Create conversion webhooks and hub routines for v1alpha4.

This may have used "kubebuilder create webhook --conversion" for any
API that did not already have a webhook.

Any newly-created api/v1alpha4/*_webhook_test.go is empty and
does not need content at this time. It has been updated with a comment
to explain where conversion tests are located.

ACTION: Any new tests added to
  github/cluster-api/util/conversion/conversion_test.go
  may need to be manually adjusted. Look for the "ACTION" comments
  in this file.

This may have added a new SetupWebhookWithManager() to suite_test.go,
though a later step will complete the changes to that file.

Signed-off-by: Blake Devcich <[email protected]>
Create conversion routines and tests for v1alpha3.

Switch api/v1alpha3/conversion.go content from hub to spoke.

These conversion.go ConvertTo()/ConvertFrom() routines are complete
and do not require manual adjustment at this time, because v1alpha3 is
currently identical to the new hub v1alpha4.

ACTION: The api/v1alpha3/conversion_test.go may need to be
  manually adjusted for your needs, especially if it has been manually
  adjusted in earlier spokes.

ACTION: Any new tests added to internal/controller/conversion_test.go
  may need to be manually adjusted.

This added api/v1alpha3/doc.go to hold the k8s:conversion-gen
marker that points to the new hub.

Signed-off-by: Blake Devcich <[email protected]>
Point controllers at new hub v1alpha4

Point conversion fuzz test at new hub. These routines are still
valid for the new hub because it is currently identical to the
previous hub.

ACTION: Some controllers may have been referencing one of these
  non-local APIs. Verify that these APIs are being referenced
  by their correct versions:
  DirectiveBreakdown, Workflow
Signed-off-by: Blake Devcich <[email protected]>
Point earlier spoke APIs at new hub v1alpha4.

The conversion_test.go and the ConvertTo()/ConvertFrom() routines in
conversion.go are still valid for the new hub because it is currently
identical to the previous hub.

Update the k8s:conversion-gen marker in doc.go to point to the new hub.

ACTION: Some API libraries may have been referencing one of these
  non-local APIs. Verify that these APIs are being referenced
  by their correct versions:
  DirectiveBreakdown, Workflow
Signed-off-by: Blake Devcich <[email protected]>
Make the auto-generated files.

Update the SRC_DIRS spoke list in the Makefile.

make manifests & make generate & make generate-go-conversions
make fmt

ACTION: If any of the code in this repo was referencing non-local
  APIs, the references to them may have been inadvertently
  modified. Verify that any non-local APIs are being referenced
  by their correct versions.

ACTION: Begin by running "make vet". Repair any issues that it finds.
  Then run "make test" and continue repairing issues until the tests
  pass.
Signed-off-by: Blake Devcich <[email protected]>
@bdevcich bdevcich merged commit 1b8980a into master Nov 14, 2024
3 checks passed
@bdevcich bdevcich deleted the api-v1alpha4 branch November 14, 2024 16:09
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