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

move e2e into its own go module and remove the runtime dependency on controller-runtime #243

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

ecordell
Copy link
Contributor

@ecordell ecordell commented Aug 16, 2023

See: authzed/controller-idioms#40 for more details

@ecordell ecordell requested a review from a team as a code owner August 16, 2023 22:55
@ecordell ecordell marked this pull request as draft August 16, 2023 23:00
@ecordell ecordell force-pushed the rm-controller-runtime branch 2 times, most recently from 87ac507 to f385f6c Compare August 17, 2023 19:50
@ecordell ecordell marked this pull request as ready for review August 17, 2023 19:50
@ecordell ecordell force-pushed the rm-controller-runtime branch 2 times, most recently from 68a8e28 to 50f5bda Compare August 18, 2023 15:02
controller-runtime (we still use it in tests).
@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
branches:
- "*"
env:
GO_VERSION: "~1.19"
GO_VERSION: "~1.20"
Copy link
Member

Choose a reason for hiding this comment

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

move to 1.21 now that its out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we usually wait a little bit right? I figured we'd do spicedb first (I would want to move to the new stdlb slices/maps libs where possible too)

Copy link
Member

Choose a reason for hiding this comment

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

K

@@ -16,7 +16,7 @@ func (c *Controller) PatchStatus(ctx context.Context, patch *v1alpha1.SpiceDBClu
}
patch.ManagedFields = nil
patch.Status.ObservedGeneration = patch.Generation
data, err := client.Apply.Data(patch)
data, err := json.Marshal(patch)
Copy link
Member

Choose a reason for hiding this comment

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

any semantic differences between this and the only Apply stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -62,7 +62,7 @@ func TestEnsureDeploymentHandler(t *testing.T) {
migrationHash: "testtesttesttest",
secretHash: "secret",
existingDeployments: []*appsv1.Deployment{{ObjectMeta: metav1.ObjectMeta{Annotations: map[string]string{
metadata.SpiceDBConfigKey: "n549h6bh675h699h697h86h5cchdfq",
metadata.SpiceDBConfigKey: "n59hb4h5f7h5b7h5dchddh79h67dq",
Copy link
Member

Choose a reason for hiding this comment

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

Does these keys changing imply that existing operators, when updated, will cause all resources to be re-applied?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does, I didn't look into why this happened specifically, but we did jump from 1.26 client go to 1.28 so I assume it's something in the deployment fields.

@ecordell ecordell added this pull request to the merge queue Aug 18, 2023
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
branches:
- "*"
env:
GO_VERSION: "~1.19"
GO_VERSION: "~1.20"
Copy link
Member

Choose a reason for hiding this comment

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

K

Merged via the queue into main with commit aadc249 Aug 18, 2023
10 checks passed
@ecordell ecordell deleted the rm-controller-runtime branch August 18, 2023 18:13
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants