Documentation
¶
Index ¶
- func CheckCRDOrphanResources(config *Config) error
- func Install(config *Config) error
- func Uninstall(config *Config, filterFunc ...FilterFunc) error
- func Verify(config *Config) (bool, error)
- func WithoutCRDFilter(u unstructured.Unstructured) bool
- type Cluster
- type Config
- type FilterFunc
- type ManifestCache
- type Release
- type ServerlessSpecManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCRDOrphanResources ¶
func Uninstall ¶
func Uninstall(config *Config, filterFunc ...FilterFunc) error
func WithoutCRDFilter ¶
func WithoutCRDFilter(u unstructured.Unstructured) bool
Types ¶
type Config ¶
type Config struct { Ctx context.Context Log *zap.SugaredLogger Cache *ManifestCache Cluster Cluster Release Release }
type FilterFunc ¶
type FilterFunc func(unstructured.Unstructured) bool
type ManifestCache ¶
type ManifestCache struct {
// contains filtered or unexported fields
}
ManifestCache provides an in-memory processor to store serverless Spec and rendered chart manifest. By using sync.Map for caching, concurrent operations to the processor from diverse reconciliations are considered safe.
Inside the processor is stored chart manifest with used custom flags by client.ObjectKey key.
func NewManifestCache ¶
func NewManifestCache() *ManifestCache
NewManifestCache returns a new instance of ManifestCache.
func (*ManifestCache) Delete ¶
func (r *ManifestCache) Delete(key client.ObjectKey)
DeleteProcessor deletes flags and manifest from ManifestCache for the passed client.ObjectKey.
func (*ManifestCache) Get ¶
func (r *ManifestCache) Get(key client.ObjectKey) *ServerlessSpecManifest
Get loads the ServerlessSpecManifest from ManifestCache for the passed client.ObjectKey.
type ServerlessSpecManifest ¶
type ServerlessSpecManifest struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.