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

Remove FleetSync controller #51

Closed
wants to merge 3 commits into from

Conversation

efiacor
Copy link
Collaborator

@efiacor efiacor commented May 15, 2024

FleetSync was brought over from Kpt and is google specific.
These CRDs and controller are no longer needed or used.

Copy link
Contributor

nephio-prow bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: efiacor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

Choose a reason for hiding this comment

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

Just formatting in this file.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

Copy link
Member

Choose a reason for hiding this comment

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

Only cleanup here.

@liamfallon
Copy link
Member

liamfallon commented May 16, 2024

@efiacor it would be good to keep formatting/cleanup/whitespace changes in separate PRs to those changing functionality. In this PR, the following files have only formatting changes:
pkg/cmd/server/start.go
pkg/git/git.go
pkg/git/primitives_test.go
pkg/registry/porch/functions.go
pkg/registry/porch/package.go
pkg/registry/porch/packagecommon.go
pkg/registry/porch/packagerevision.go
pkg/registry/porch/packagerevisionresources.go
pkg/registry/porch/packagerevisions_approval.go
pkg/repository/util.go
test/e2e/cli/cluster.go
test/e2e/e2e_test.go
test/e2e/e2e_test_utils.go

So apart from these two files:
controllers/go.mod
controllers/go.sum

This PR boils down to:

Remove Fleetsync CRDs:
controllers/config/crd/bases/config.porch.kpt.dev_fleetmembershipbindings.yaml
controllers/config/crd/bases/config.porch.kpt.dev_fleetmemberships.yaml
controllers/config/crd/bases/config.porch.kpt.dev_fleetscopes.yaml
controllers/config/crd/bases/config.porch.kpt.dev_fleetsyncs.yaml

Remove the Fleetsync controller:
controllers/fleetsyncs

Changes to:
Makefile
controllers/main.go

@tliron please check

@efiacor
Copy link
Collaborator Author

efiacor commented May 16, 2024

@efiacor it would be good to keep formatting/cleanup/whitespace changes in separate PRs to those changing functionality. In this PR, the following files have only formatting changes: pkg/cmd/server/start.go pkg/git/git.go pkg/git/primitives_test.go pkg/registry/porch/functions.go pkg/registry/porch/package.go pkg/registry/porch/packagecommon.go pkg/registry/porch/packagerevision.go pkg/registry/porch/packagerevisionresources.go pkg/registry/porch/packagerevisions_approval.go pkg/repository/util.go test/e2e/cli/cluster.go test/e2e/e2e_test.go test/e2e/e2e_test_utils.go

So apart from these two files: controllers/go.mod controllers/go.sum

This PR boils down to:

Remove Fleetsync CRDs: controllers/config/crd/bases/config.porch.kpt.dev_fleetmembershipbindings.yaml controllers/config/crd/bases/config.porch.kpt.dev_fleetmemberships.yaml controllers/config/crd/bases/config.porch.kpt.dev_fleetscopes.yaml controllers/config/crd/bases/config.porch.kpt.dev_fleetsyncs.yaml

Remove the Fleetsync controller: controllers/fleetsyncs

Changes to: Makefile controllers/main.go

@tliron please check

Agreed. I mistakenly ran gofmt and forgot to revert.

@johnbelamaric
Copy link
Member

This is used in the GCP install and I brought it over for that purpose. @tliron can we move this to a GCP controller instead of removing it?

@efiacor
Copy link
Collaborator Author

efiacor commented May 17, 2024

@efiacor
Copy link
Collaborator Author

efiacor commented May 21, 2024

This is used in the GCP install and I brought it over for that purpose. @tliron can we move this to a GCP controller instead of removing it?

Hi @johnbelamaric , chatting with Tal we agreed the moving this to it's own repo would add unnecessary overhead.
The GCP install is using the kpt v31 of the controllers - https://github.com/nephio-project/catalog/blob/main/distros/gcp/nephio-mgmt/porch/9-controllers.yaml#L46

Do we need to continue to support the GCP install in nephio?

@efiacor efiacor closed this Aug 13, 2024
@efiacor efiacor deleted the remove_fleet_sync branch August 13, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants