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

Add serviceaccount in parallel #7373

Merged

Conversation

prakrit55
Copy link
Contributor

Fixes #7225

Proposed Changes

  • create the service account for the Parallel identity
  • configured the informers and configmap watchers

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Signed-off-by: Griffin <prakritimandal611@gmail.com>
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 17, 2023
@knative-prow
Copy link

knative-prow bot commented Oct 17, 2023

Hi @prakrit55. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@prakrit55 prakrit55 changed the title added serviceaccount in parallel Add serviceaccount in parallel Oct 17, 2023
pkg/reconciler/parallel/controller.go Outdated Show resolved Hide resolved
pkg/reconciler/parallel/parallel.go Show resolved Hide resolved
pkg/reconciler/parallel/controller.go Show resolved Hide resolved
pkg/reconciler/parallel/controller.go Outdated Show resolved Hide resolved
@creydr
Copy link
Member

creydr commented Oct 17, 2023

Thanks @prakrit55 for your PR. I left some comments. As discussed, could you also add unit tests for this?

added changes
prakrit55 and others added 2 commits October 17, 2023 21:03
added `globalResync`
Signed-off-by: Griffin <prakritimandal611@gmail.com>
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 17, 2023
Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

Hello @prakrit55,
Thanks for the update. I left a few comments. We mostly need tests for this new behavior.

You can always run and test your changes locally too. Check out the DEVELOPMENT.md with details about how to install it in a local cluster (e.g. KinD or minikube) or how to run the tests.
I hope this helps

pkg/reconciler/parallel/controller.go Outdated Show resolved Hide resolved
pkg/apis/flows/v1/parallel_lifecycle.go Outdated Show resolved Hide resolved
pkg/apis/flows/v1/parallel_lifecycle.go Show resolved Hide resolved
pkg/reconciler/parallel/parallel.go Show resolved Hide resolved
@creydr
Copy link
Member

creydr commented Oct 26, 2023

Hello @prakrit55,
any updates on this? Do you need any more information?

@prakrit55
Copy link
Contributor Author

Hey @creydr, I was somewhat busy in past few days, I will make it done in some days.

prakrit55 and others added 2 commits October 28, 2023 11:02
@creydr
Copy link
Member

creydr commented Nov 10, 2023

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 10, 2023
@creydr
Copy link
Member

creydr commented Nov 10, 2023

Hello @prakrit55,
I didn't see you updated the tests. Thanks for doing this.
The unit tests are failing currently, as it doesn't know the features-config map. When you pass the configmap to configmap.NewStaticWatcher() in parallel/controller_test.go as done in subscription/controller_test.go, this should do the trick:

c := NewController(ctx, configmap.NewStaticWatcher(
	&corev1.ConfigMap{
		ObjectMeta: metav1.ObjectMeta{
			Name: feature.FlagsConfigName,
		},
	},
))

And can you fix the lint issues? You can see them, on the files overview of this PR. (you can simply run gofmt -s -w ./pkg and gofmt -s -w ./test to fix them)

Signed-off-by: Griffin <prakritimandal611@gmail.com>
@prakrit55
Copy link
Contributor Author

hey @creydr, I fixed the lint, could you check it once

@prakrit55
Copy link
Contributor Author

/retest

@creydr
Copy link
Member

creydr commented Nov 13, 2023

@prakrit55 thanks for checking on the linter issues.
Some unit test see still to fail. Can you check on them? You can also run them locally by go test ./pkg/...

Signed-off-by: Griffin <prakritimandal611@gmail.com>
Signed-off-by: Griffin <prakritimandal611@gmail.com>
Signed-off-by: Griffin <prakritimandal611@gmail.com>
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (0684dbe) 76.74% compared to head (dc92aa1) 76.76%.
Report is 20 commits behind head on main.

Files Patch % Lines
pkg/reconciler/parallel/controller.go 81.48% 3 Missing and 2 partials ⚠️
pkg/apis/flows/v1/parallel_lifecycle.go 50.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7373      +/-   ##
==========================================
+ Coverage   76.74%   76.76%   +0.01%     
==========================================
  Files         253      253              
  Lines       13916    14019     +103     
==========================================
+ Hits        10680    10761      +81     
- Misses       2702     2720      +18     
- Partials      534      538       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @prakrit55 👍

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Nov 17, 2023
Copy link

knative-prow bot commented Nov 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, prakrit55

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 17, 2023
@knative-prow knative-prow bot merged commit dc96522 into knative:main Nov 17, 2023
40 of 41 checks passed
@prakrit55
Copy link
Contributor Author

Thanks for doing this @prakrit55 👍

/lgtm

sorry for the delay 😅

creydr added a commit to creydr/knative-eventing that referenced this pull request May 7, 2024
creydr added a commit to creydr/knative-eventing that referenced this pull request May 8, 2024
knative-prow bot pushed a commit that referenced this pull request May 14, 2024
…#7902)

* Update CRDs to include AuthStatus serviceAccountNames

* Revert "support auto generation of Sequence identity service account [OIDC] (#7361)"

This reverts commit e5f2814.

* Update Sequence to expose OIDC identities of underlying Subscriptions

* Revert "Add serviceaccount in parallel (#7373)"

This reverts commit dc96522.

* Update Parallel to expose OIDC identities of underlying Subscriptions

* Add e2e test for Parallel

* Add e2e test for Sequence

* Add unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support auto generation of Parallel identity service account and expose in AuthStatus
2 participants