OLM
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- title: FBC / catalog templates 101 tags: fbc,WIP --- # FBC / catalog templates 101 (Note: catalog templates had a working title of `veneers`. We're attempting to consistently rename, but this should at least demystify any missed references.) ## Background File-Based Catalogs (FBC) came about because (some reasons): - implicit graph generation incompatibilities (replaces vs. skips) for new package add - opacity of index generation/maintenance - forcing OLM to be a cog in the middle of the 'catalog manipulation machine' More details in the [how we got to catalog templates](https://hackmd.io/ay3yn4UMTUSPM93KUdToKg) and even in [announcement of FBC on the operator-framework g-group](https://groups.google.com/g/operator-framework/c/AyqU-27PKHc). FBCs are the foundational building block for other projects, like KCP, RukPak, and PlatformOperators. But ... they can get [complex](https://hackmd.io/XvqmZxgBQEaG-LRJ8TZeFg) and full of meta-data we can retrieve once a bundle has been deployed. Is there an easier way? Enter ... ## Catalog Templates A catalog template (hereafter: `template`) is a simplification over directly dealing with FBC. The single defining characteristic of a `template` is that when it is processed it will *always yield valid FBC.* This means that there are many approaches, with only one valid result. The tool that is used to process these templates into FBC is not material. But there is a lot of potential benefit for RH to set expectations & establish good ground rules by providing examples. There is also a bunch of benefit to 'officially supported' veneers as a message of goodwill to operator authors and a promise of continued support. In the spirit of the 80/20 rule, we set out to implement three `template` types to capture primordial use-cases: 1. `basic template` captures "how can we have an FBC, but simpler to maintain?" 2. `semver template` captures "how can I express channel promotion by leveraging common semver concepts?" 3. `composite template` captures "how can I coordinate the processing of multiple veneers or multiple destination catalogs?" We'll cover each of these briefly, relying mainly on existing documentation ### Basic Template The [PR](https://github.com/operator-framework/operator-registry/pull/941) has really good documentation for this in detail, as well as [the design doc](https://hackmd.io/J6PQYDnLTfqYGLWpOs44aQ) and [the demo](https://hackmd.io/EIWEwm28TZiwHUG25cmLBw). In essence though, this template is a complete FBC that allows the operator author the ability to skip all of the olm.bundle details. This separates the actions of "release the bundle" from "generate the catalog", and it also simplifies the maintenance efforts since it can easily reduce a full FBC down to a representative 20 lines or so. Operator catalog generation becomes 1. release bundle 2. update the `basic template` to point to the new tagged release of the bundle 3. generate an FBC from the template Yay, simple. But operators want to do more than this. They want to express complex notions of sequentiality over a range of versions of an operator, and make the complex ... simple. Semver gives us a lever for deterministic sequencing of things, which leads to ... ### SemVer template The [PR](https://github.com/operator-framework/operator-registry/pull/948) has really good documentation of how this work, including examples. There is also a [README.md](https://github.com/operator-framework/operator-registry/tree/grokspawn-semver-veneer-cmd/alpha/veneer/semver) (and in that directory are also asciinema GIFs of evaluating both the minor and major channel generation approaches) and a hugely complex and descriptive [design doc](https://hackmd.io/q3_f5fnlTqGB9hOCTqZTiw). Please read the README.md and design doc for more of the details of this veneer. This template allows an operator author to trivially promote a bundle into channel(s) of their choice, and trivially maintain the resulting info. And one of the coolest things is that you can output the channel edges in mermaid, so you can view (and debug) them graphically, for e.g. ```mermaid graph LR testoperator.v0.1.0 testoperator.v0.1.1 testoperator.v0.1.2 testoperator.v0.1.3 testoperator.v0.1.3 -- skips --> testoperator.v0.1.0 testoperator.v0.1.3 -- skips --> testoperator.v0.1.1 testoperator.v0.1.3 -- skips --> testoperator.v0.1.2 testoperator.v0.2.0 testoperator.v0.2.1 testoperator.v0.2.2 testoperator.v0.2.2 -- replaces --> testoperator.v0.1.3 testoperator.v0.2.2 -- skips --> testoperator.v0.2.0 testoperator.v0.2.2 -- skips --> testoperator.v0.2.1 testoperator.v0.3.0 testoperator.v0.3.0 -- replaces --> testoperator.v0.2.2 ``` Between the `basic` and `semver` template, we feel like we've covered the most common operator author use-cases. But we haven't addressed the scaling question for managing multiple template, for which we need something like ### VeneerGroup Template The [design doc](https://hackmd.io/dD3h4K3tRi-fF3Z3SAuGKA?view) for this establishes a good basis for this, the intent being to allow an individual operator author with the tools necessary to handle how templates are processed into FBCs with arbitrary granularity, so long as they pass `opm validate` test on the results. Do they wish to process a different template with a different OPM binary _per release_? Process the _same template_ with discrete OPM binaries for different release versions? Contribute the same generated FBC to multiple catalogs? After looking into alternate implementations of a veneergroups without the use of specially built binaries for the purpose, it seems fairly straightforward to use existing tools for doing the same. [This demo](https://drive.google.com/file/d/1txhji3dpHm8NOf-J-DrgO09AbltDixHY/view?usp=sharing), using [the repository linked here](https://github.com/ankitathomas/veneergroup), shows how make can do what the veneergroup design doc outlines cleanly. ### Composite Template After determining that there were adequate tools to approach a one-to-many publishing model for FBC, we discovered that the most significant gap in the operator-author <--> catalog maintainer relationship was clear end-to-end communication of catalog submission requirements (for e.g. opm version, accepted templates/formats). That is, communications from author to catalog were trivial, but catalog to author were missing. Note: official docs don't yet exist, but [FBC enablement - Community](https://docs.google.com/document/d/1uEZdVA06GGahPl3ygnGrFLRkrohaQjs25mVcXToYakE/) and [FBC Enablement - HACBS](https://docs.google.com/document/d/1fixvZl0yr0iwIw9m5Mo-zQuh5yE5lQIjBzBpo2dtfQg/) include discussion on the composite template. ## Timeline of Contributing Sources | Date | Detail | | ----------- | -------------------------------------------------- | | 2021-Oct-21 | [FBC crash course](https://hackmd.io/XvqmZxgBQEaG-LRJ8TZeFg) | 2021-Oct-21 | [Veneer scratchpad](https://hackmd.io/ixIuRBNURV-7K4C1aGkzxQ) (marked obsolete) | 2022-Feb-10 | [CNCF operator-framework group announcement of FBC upcoming in OCP 4.11](https://groups.google.com/g/operator-framework/c/AyqU-27PKHc) | | 2022-Feb-10 | [`basic` veneer whitepaper](https://hackmd.io/J6PQYDnLTfqYGLWpOs44aQ) | | 2022-Mar-17 | [FBC -- how we got to veneers](https://hackmd.io/ay3yn4UMTUSPM93KUdToKg) (my attempt to summarize 'that which went before' for the FBC --> veneer journey) | | 2022-Mar-30 | [`basic` veneer demo](https://hackmd.io/EIWEwm28TZiwHUG25cmLBw) | | 2022-Apr-01 | [`semver` veneer whitepaper](https://hackmd.io/q3_f5fnlTqGB9hOCTqZTiw) | | 2022-May-23 | [`veneergroup` veneer whitepaper](https://hackmd.io/dD3h4K3tRi-fF3Z3SAuGKA?view) | | 2022-xxx-xx | [`veneergroup` equivalency/obviation via other tools github repo](https://github.com/ankitathomas/veneergroup) | | 2022-Jul-28 | [`veneer` alpha docs](https://olm.operatorframework.io/docs/reference/veneers/) | | 2023-Feb-17 | Renaming veneer to catalog template ## Demo / presentation list | Date | Reference | | ---- | ------------------------------------------------------------ | | 23Mar2022 | [modeled operator author FBC from veneer contribution to catalog](https://hackmd.io/EIWEwm28TZiwHUG25cmLBw) | | 01Apr2022 | [ascinema demo of basic veneer](https://drive.google.com/file/d/1vGqLVMRHZAIkAJHG0I4kFY83S12hk7Hb/view) | | 11Apr2022 | [sprint demo for contribution pipeline](https://drive.google.com/file/d/1MN-2GZaMARxdoKmdggb0HSFoTW6-zFsY/view) | | 22Apr2022 | [sprint demo for basic veneer](https://drive.google.com/file/d/1Ll5ZRWGxIDQy34AW0NYWR4P2dKKcbmDb/) | | 20Jun2022 | [OLM working group semver veneer demo](https://www.youtube.com/watch?v=JYQnkSESNIU)| | 30Jun2022| [`basic veneer` and `semver veneer` "quickstart" documentation](https://github.com/operator-framework/operator-registry/tree/veneer_alpha_quickstart/alpha/veneer) | | 01Jul2022 | [`veneer` olm-docs PR](https://github.com/operator-framework/olm-docs/pull/245) | | 25Jul2022 | [`veneergroup` make alternative demo](https://drive.google.com/file/d/1txhji3dpHm8NOf-J-DrgO09AbltDixHY/view?usp=sharing) | | 04Aug2022 | [`opm render -o mermaid` support operator-framework working hours demo](https://drive.google.com/file/d/1QDpXMV_bS3KF5kH-O2kSaKygz5GfYThi/view?ts=62f11617) [Note: moved to new command `opm alpha render-graph`]| | 05Aug2022 | [`opm render -o mermaid` support sprint demo](https://drive.google.com/file/d/1M1i2MGO2aMp_eQ6cx7G4XHHx5HiP_hHd/view) [Note: moved to new command `opm alpha render-graph`]| | 20Jan2023 | [`sprint demo for composite template`](https://drive.google.com/file/d/19JANcxfEITdCPxUsEi5NeeXWNstxqBOT/view) | | 17Nov2023 | [demo of deprecated catalog content via PackageServer API](https://asciinema.org/a/xlDhS5xd8ARTqbJ9MVboIPIlK) | | 06Feb2024 | [onboarding script](https://github.com/k8s-operatorhub/community-operators/pull/3850) (moved [here](https://github.com/k8s-operatorhub/community-operators/pull/3850))

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully