-
Notifications
You must be signed in to change notification settings - Fork 595
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
Use filtered informer to watch OIDC service accounts #7527
Changes from 6 commits
0bf2982
17c775a
94cd51b
a82c2aa
d4bfe4e
979911d
bbefcc2
de30fc5
ce5a778
2ae1090
695e58c
efc1cc3
37f0dff
a414f3e
de787c6
c365d4a
7d73360
c048610
3d3bd2c
f5d583f
d934231
08dbe1e
d3205ab
a31fc39
b69cc29
51befc7
e95329e
e76634a
8e112d8
c04375a
d7f6e43
f2fe553
b2941ac
5244f19
2c94ec7
3d0d399
8c30426
bee47f4
5c25449
63346a6
9a44a73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ import ( | |
"knative.dev/pkg/kmeta" | ||
pkgreconciler "knative.dev/pkg/reconciler" | ||
|
||
"knative.dev/eventing/pkg/apis/sources" | ||
|
||
"go.uber.org/zap" | ||
v1 "k8s.io/api/core/v1" | ||
apierrs "k8s.io/apimachinery/pkg/api/errors" | ||
|
@@ -66,6 +68,9 @@ func GetOIDCServiceAccountForResource(gvk schema.GroupVersionKind, objectMeta me | |
Annotations: map[string]string{ | ||
"description": fmt.Sprintf("Service Account for OIDC Authentication for %s %q", gvk.GroupKind().Kind, objectMeta.Name), | ||
}, | ||
Labels: map[string]string{ | ||
sources.OIDCLabelKey: "", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am OK with using the same selector for the OIDC related resources (e.g. use it for the OIDC created role & rolebinding of the apiserversource), but could we then:
|
||
}, | ||
}, | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we probably want to have an actual value for this label, rather than just an empty string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Cali0707 Thank you for your comments! Would something like "OIDC label" be a good value for this?