Documentation ¶
Index ¶
- Variables
- func GenerateCacheKey(values ...string) string
- func PostRunCreateCR(ctx context.Context, skr declarativev2.Client, kcp client.Client, ...) error
- func PreDeleteDeleteCR(ctx context.Context, skr declarativev2.Client, kcp client.Client, ...) error
- func WithClientCacheKey() declarativev2.WithClientCacheKeyOption
- type ClusterClient
- type KeyChainLookup
- type KeyChainProvider
- type PathExtractor
- type RESTConfigGetter
- type RemoteClusterLookup
- type SpecResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMoreThanOneSecretFound = errors.New("more than one secret found")
View Source
var ErrRenderModeInvalid = errors.New("render mode is invalid")
Functions ¶
func GenerateCacheKey ¶
func PostRunCreateCR ¶
func PostRunCreateCR( ctx context.Context, skr declarativev2.Client, kcp client.Client, obj declarativev2.Object, ) error
PostRunCreateCR is a hook for creating the manifest default custom resource if not available in the cluster It is used to provide the controller with default data in the Runtime.
func PreDeleteDeleteCR ¶
func PreDeleteDeleteCR( ctx context.Context, skr declarativev2.Client, kcp client.Client, obj declarativev2.Object, ) error
PreDeleteDeleteCR is a hook for deleting the module CR if available in the cluster. It uses DeletePropagationBackground to delete module CR. Only if module CR is not found (indicated by NotFound error), it continues to remove Manifest finalizer, and we consider the CR removal successful.
func WithClientCacheKey ¶
func WithClientCacheKey() declarativev2.WithClientCacheKeyOption
Types ¶
type ClusterClient ¶
func (*ClusterClient) GetRESTConfig ¶
type KeyChainLookup ¶
type KeyChainProvider ¶
type KeyChainProvider struct {
// contains filtered or unexported fields
}
func NewKeyChainProvider ¶
func NewKeyChainProvider(kcpClient client.Client) *KeyChainProvider
type PathExtractor ¶
type RESTConfigGetter ¶
type RemoteClusterLookup ¶
type RemoteClusterLookup struct { KCP *declarativev2.ClusterInfo ConfigGetter RESTConfigGetter }
func (*RemoteClusterLookup) ConfigResolver ¶
func (r *RemoteClusterLookup) ConfigResolver( ctx context.Context, obj declarativev2.Object, ) (*declarativev2.ClusterInfo, error)
type SpecResolver ¶
type SpecResolver struct {
// contains filtered or unexported fields
}
func NewSpecResolver ¶
func NewSpecResolver(kcLookup KeyChainLookup, extractor PathExtractor) *SpecResolver
func (*SpecResolver) GetSpec ¶
func (s *SpecResolver) GetSpec(ctx context.Context, manifest *v1beta2.Manifest) (*declarativev2.Spec, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.