resources

package
v0.41.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOIDCTokenRoleBindingName added in v0.40.0

func GetOIDCTokenRoleBindingName(sourceName string) string

GetOIDCTokenRoleBindingName will return the name of the rolebinding for creating the JWT token

func GetOIDCTokenRoleName added in v0.40.0

func GetOIDCTokenRoleName(sourceName string) string

GetOIDCTokenRoleName will return the name of the role for creating the JWT token

func Labels

func Labels(name string) map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL