LogoLogo
HomeBlogGet a Demo
  • Introduction
  • Install Lunar
  • Learn the basics
  • 📖Docs
    • Key concepts
    • Component JSON
    • Catalog JSON
    • Lunar CLI Reference
  • 📝Configuration
    • lunar-config.yml
      • catalogers
      • catalogers/hooks
      • domains
      • components
      • collectors
      • collectors/hooks
      • policies
    • lunar.yml
  • 🛠️Plugin SDKs
    • Plugins configuration
      • lunar-cataloger.yml
      • lunar-collector.yml
      • lunar-policy.yml
    • Bash SDK
      • Cataloger
      • Collector
    • Python SDK
      • Collector
      • Policy
        • Check
        • Path
        • ComponentData
        • NoDataError
        • Utility Functions
  • ⚙️SQL API
    • Overview
    • Views
      • domains
      • components
      • component_deltas
      • initiatives
      • policies
      • checks
      • prs
      • catalog
Powered by GitBook

©️ Earthly Technologies

On this page
  • Hook types
  • cron
  • repo
  • component-repo
  1. Configuration
  2. lunar-config.yml

catalogers/hooks

  • lunar-config.yml -> catalogers.<cataloger-index>.hook

  • lunar-cataloger.yml -> catalogers.<cataloger-index>.hook

  • Type: object

  • Form:

    type: <hook-type>
    <options>

A cataloger hook defines a trigger point for when a cataloger should run. Catalogers can be triggered by various events such as code changes, or cron schedules.

A hook has different configuration options depending on the type of event it is triggered by.

Hook types

cron

  • Form:

    type: cron
    schedule: <cron-schedule>

The cron type triggers the cataloger on a specified schedule. The schedule is defined using a cron expression.

repo

  • Form:

    type: repo
    repo: github://<org>/<repo>

The repo type triggers the cataloger when a commit is made to a specified repository. The repository is defined using the GitHub URL format. This cataloger type is most useful for centralized repositories that contain information about domains and/or components.

component-repo

  • Form:

    type: component-repo

The component-repo type triggers the cataloger when a commit is made to a component repository. This cataloger type is most useful when additional information about components is available in each of the respective repositories.

Although this cataloger type cannot be used to define new components, it can be used to augment the metadata (such as owner, description and tags) associated with existing components.

PreviouscatalogersNextdomains

Last updated 15 days ago

📝