Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelaxedJSONPathExpression ¶
RelaxedJSONPathExpression attempts to be flexible with JSONPath expressions, it accepts:
- metadata.name (no leading '.' or curly braces '{...}'
- {metadata.name} (no leading '.')
- .metadata.name (no curly braces '{...}')
- {.metadata.name} (complete expression)
And transforms them all into a valid jsonpath expression:
{.metadata.name}
Types ¶
type ControllerConfig ¶ added in v1.14.0
type ControllerConfig struct { // OptionalResourceRetryInterval is the interval at which the controller will retry // to fetch optional resources. OptionalResourceRetryInterval time.Duration // ResourceRetryInterval is the interval at which the controller will retry to fetch // resources(non optional). ResourceRetryInterval time.Duration }
ControllerConfig holds the configuration for the ObjectTemplate controller.
type GenericObjectTemplateController ¶
type GenericObjectTemplateController struct {
// contains filtered or unexported fields
}
func NewClusterObjectTemplateController ¶
func NewClusterObjectTemplateController( client, uncachedClient client.Client, log logr.Logger, accessManager managedcache.ObjectBoundAccessManager[client.Object], scheme *runtime.Scheme, restMapper meta.RESTMapper, cfg ControllerConfig, ) *GenericObjectTemplateController
func NewObjectTemplateController ¶
func NewObjectTemplateController( client, uncachedClient client.Client, log logr.Logger, accessManager managedcache.ObjectBoundAccessManager[client.Object], scheme *runtime.Scheme, restMapper meta.RESTMapper, cfg ControllerConfig, ) *GenericObjectTemplateController
func (*GenericObjectTemplateController) SetEnvironment ¶
func (c *GenericObjectTemplateController) SetEnvironment(env *manifests.PackageEnvironment)
func (*GenericObjectTemplateController) SetupWithManager ¶
func (c *GenericObjectTemplateController) SetupWithManager( mgr ctrl.Manager, ) error
type JSONPathFormatError ¶
type JSONPathFormatError struct {
Path string
}
func (*JSONPathFormatError) Error ¶
func (e *JSONPathFormatError) Error() string
type SourceError ¶
func (*SourceError) Error ¶
func (e *SourceError) Error() string
type SourceKeyNotFoundError ¶
type SourceKeyNotFoundError struct {
Key string
}
func (*SourceKeyNotFoundError) Error ¶
func (e *SourceKeyNotFoundError) Error() string
type TemplateContext ¶
type TemplateError ¶
type TemplateError struct {
Err error
}
func (*TemplateError) Error ¶
func (e *TemplateError) Error() string
type TemplateTransformer ¶
type TemplateTransformer struct {
// contains filtered or unexported fields
}
func NewTemplateTransformer ¶
func NewTemplateTransformer(tmplCtx TemplateContext) (*TemplateTransformer, error)
Click to show internal directories.
Click to hide internal directories.