Skip to content

Conversation

@komer3
Copy link
Contributor

@komer3 komer3 commented Nov 19, 2024

Latest kubebuilder layout is putting the controller and webhook code under internal dir. With this PR, moved controller code under internal dir and also moved webhook code under internal. Made necessary updates to get it working.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@komer3 komer3 marked this pull request as draft November 20, 2024 04:13
@komer3 komer3 marked this pull request as ready for review November 20, 2024 15:50
@AshleyDumaine
Copy link
Collaborator

@komer3 you might want to update the gci config in the .golangci.yml to skip the webhook_suite_test.go like we do here because of the gci bug with that kubebuilder marker: https://github.com/linode/cluster-api-provider-linode/pull/172/files#diff-6179837f7df53a6f05c522b6b7bb566d484d5465d9894fb04910dd08bb40dcc9R217

@AshleyDumaine AshleyDumaine added dependencies Pull requests that update a dependency file cleanup anything cleanup related labels Nov 20, 2024
@AshleyDumaine AshleyDumaine changed the title [Feat] Migrate to new kubebuilder layout for webhooks and controller code [improvement] Migrate to new kubebuilder layout for webhooks and controller code Nov 20, 2024
Copy link
Collaborator

@AshleyDumaine AshleyDumaine left a comment

Choose a reason for hiding this comment

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

LGTM

@komer3 komer3 merged commit 3b20368 into main Nov 20, 2024
10 checks passed
@komer3 komer3 deleted the kubebuilder-upgrade branch November 20, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup anything cleanup related dependencies Pull requests that update a dependency file improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants