Documentation ¶
Index ¶
- func DynamicClientFromContext(ctx context.Context) client.Client
- func New(ctx context.Context, schemes ...SchemeAdder) (client.Client, error)
- func NewContextWithDynamicClient(ctx context.Context, client client.Client) context.Context
- func NewContextWithStaticClient(ctx context.Context, client client.Client) context.Context
- func NewScheme(schemes ...SchemeAdder) (*runtime.Scheme, error)
- func StaticClientFromContext(ctx context.Context) client.Client
- type SchemeAdder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new controller runtime caching client, initialized with core and unikorn resources for typed operation.
func NewScheme ¶
func NewScheme(schemes ...SchemeAdder) (*runtime.Scheme, error)
NewScheme returns a scheme with all types that are required by unikorn. TODO: we'd really love to include ArgoCD here, but it's dependency hell. See https://github.com/argoproj/gitops-engine/issues/56 for a never ending commentary on the underlying problem.
Types ¶
type SchemeAdder ¶
SchemeAdder allows custom resources to be added to the scheme.
Click to show internal directories.
Click to hide internal directories.