Documentation ¶
Index ¶
- Variables
- func ApplyOverlay(current, overlay runtime.Object) error
- func GenerateManifests(manifest string, values interface{}, funcMap template.FuncMap) ([]byte, error)
- func LoadTemplate(manifest string, values interface{}, funcMap template.FuncMap, ...) ([]byte, error)
- type Application
- func (a *Application) Apply(ctx context.Context, manifest string, log logr.Logger, needCompose bool) (bool, error)
- func (a *Application) ApplyAll(ctx context.Context, manifestFiles []string, log logr.Logger) error
- func (a *Application) ApplyFromObject(ctx context.Context, obj runtime.Object, log logr.Logger, needCompose bool) (bool, error)
- type ErrorCollector
- type Repo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNothingLoaded = errors.New("LoadTemplate: failed load anything from manifests")
Functions ¶
func ApplyOverlay ¶
ApplyOverlay applies an overlay using JSON patch strategy over the current Object in place.
Types ¶
type Application ¶
type Application struct { client.Client CR client.Object FileRepo Repo GVK schema.GroupVersionKind TmplFunc template.FuncMap Recorder record.EventRecorder }
Application contains the resource of one single component which is applied to api server
func (*Application) Apply ¶
func (a *Application) Apply(ctx context.Context, manifest string, log logr.Logger, needCompose bool) (bool, error)
Apply a template represents a component to api server
type ErrorCollector ¶
type ErrorCollector []error
func (*ErrorCollector) Collect ¶
func (c *ErrorCollector) Collect(e error)
func (*ErrorCollector) Error ¶
func (c *ErrorCollector) Error() error
Click to show internal directories.
Click to hide internal directories.