Documentation ¶
Index ¶
- func GetOIDCTokenRoleBindingName(sourceName string) string
- func GetOIDCTokenRoleName(sourceName string) string
- func Labels(name string) map[string]string
- func MakeOIDCRole(source *v1.ApiServerSource) (*rbacv1.Role, error)
- func MakeOIDCRoleBinding(source *v1.ApiServerSource) (*rbacv1.RoleBinding, error)
- func MakeReceiveAdapter(args *ReceiveAdapterArgs) (*appsv1.Deployment, error)
- type ReceiveAdapterArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOIDCTokenRoleBindingName ¶ added in v0.40.0
GetOIDCTokenRoleBindingName will return the name of the rolebinding for creating the JWT token
func GetOIDCTokenRoleName ¶ added in v0.40.0
GetOIDCTokenRoleName will return the name of the role for creating the JWT token
func MakeOIDCRole ¶ added in v0.40.0
func MakeOIDCRole(source *v1.ApiServerSource) (*rbacv1.Role, error)
MakeOIDCRole will return the role object config for generating the JWT token
func MakeOIDCRoleBinding ¶ added in v0.40.0
func MakeOIDCRoleBinding(source *v1.ApiServerSource) (*rbacv1.RoleBinding, error)
MakeOIDCRoleBinding will return the rolebinding object for generating the JWT token So that ApiServerSource's service account have access to create the JWT token for it's OIDC service account and the target audience Note: it is in the source.Spec, NOT in source.Auth
func MakeReceiveAdapter ¶
func MakeReceiveAdapter(args *ReceiveAdapterArgs) (*appsv1.Deployment, error)
MakeReceiveAdapter generates (but does not insert into K8s) the Receive Adapter Deployment for ApiServer Sources.
Types ¶
type ReceiveAdapterArgs ¶
type ReceiveAdapterArgs struct { Image string Source *v1.ApiServerSource Labels map[string]string Audience *string SinkURI string CACerts *string Configs reconcilersource.ConfigAccessor Namespaces []string AllNamespaces bool NodeSelector map[string]string }
ReceiveAdapterArgs are the arguments needed to create a ApiServer Receive Adapter. Every field is required.