Joe Lanford
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • 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
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • 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 Note Insights Sharing URL Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • 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
    --- tags: OLM --- # Decomposed `opm add` workflow for declarative config ## Problem The current `opm alpha add` command combines three functions into one: 1. Extract bundle image and format as declarative config olm.package (if necessary) and olm.bundle blob 2. Insert the blob into the existing declarative config 3. Write out the updated declarative config Combining these steps poses several potential problems. 1. Using bundle images to generate package level metadata (e.g. default channel) has caused problems in the past. For example, should new bundles overwrite package metadata or should the first added bundle win? 2. It makes it hard to support users if this exact workflow breaks down for their use case (they would need a patched version of opm) 3. It is very opinionated, leaving users little room for adjustments and flexibility. 4. It becomes more difficult to maintain as users request custom features to be inserted that they could otherwise handle themselves if the process were decomposed. 5. When `opm alpha add` writes the updated declarative config back out, it does not honor the users existing directory structure. This poses a problem for users: use `opm alpha add` and accept the opinionated directory structure it enforces (and any bugs it might have), or keep a custom directory structure and make blobs by hand. 6. The updated declarative config directory may be missing important non-declarative config files found in the original (e.g. `.git`) (_This is an implementation detail of the current codebase. It's possible this could be addressed separately_) 7. Unless we restrict the spec with respect to file references, `opm alpha add` MUST fail when unknown schema and property types are found because they can contain relative file references and `opm` will not know to move the declarative config blob and the referenced file together. If `opm` only moved the location of the blob, it would break the file reference. The practical outcome is that we would effectively negate the ability of users to use the extension mechanisms that declarative config is designed to support. ## Overview To solve this problem, we are proposing to remove `opm alpha add` and replace it with two commands: 1. `opm alpha init <packageName>`, which will generate an `olm.package` blob and write it to stdout. 2. `opm alpha render <image-or-config-dir1> ... <image-or-config-dirN>`, which will render declarative config directories and various image types and write their contents to stdout in the declarative config format. This decomposition solves the above-mentioned problems: 1. `opm alpha init` is an explicit command to generate package level metadata. By having a separate command for generating package metadata, there is no longer any ambiguity about how bundles affect package-level metadata. Changes to package-level metadata after initialization can be handled with simple patches. 2. One mode of `opm alpha render` is basically step 1 of the current internal `opm alpha add` workflow. It can convert a bundle image to a declarative config `olm.bundle` representation. 3. In addition to handling bundle images, the `opm alpha render` command can render existing sqlite and declarative config-based indexes, and render their contents to stdout. A new bundle can be added to an existing index with `opm alpha render index-image:latest new-bundle:v2.0.0`. 4. For step 2, instead of `opm` attempting to insert the blob into the declarative config directory, it delegates that to the user, which gives the user flexibility to modify the blob(s) before insertion and to insert the blob(s) using a custom directory structure of their choosing. 5. Step 3 (writing a loaded and modified declarative config back to disk in an opinionated structure) is removed due to edge cases that cannot be solved when custom schemas and property types are in use. ## Disadvantages There are some disadvantages to this approach. The main disadvantage is that many users won't want or need to step off the default path already handled by `opm alpha add`. This proposal decouples the bundle-image-to-blob conversion process from the add-blob-to-configs process, so users will have to make a decision about how to add the bundle to their config and know how to implement that. However, nearly all users of `opm` are likely capable enough to use command line redirection. To illustrate the difference: * Using `add` ```console opm alpha add my-index myimage:v1.0.0 ``` * Using `render` with file redirection ```console opm alpha render myimage:v1.0.0 >> my-index/my-package/my-package.json ``` Another disadvantage is that this makes the CLI surface of `opm` slightly larger because there are now two commands `init` and `render` instead of just one. ## Examples ### Add a bundle image into a directory structure without knowing its package ```bash= #!/usr/bin/env bash set -e CONFIGS_DIR="configs" BUNDLE_IMAGE="quay.io/openshift-community-operators/etcd:v0.9.0" BUNDLE=$(opm alpha render "${BUNDLE_IMAGE}") PACKAGE_NAME=$(echo "${BUNDLE}" | yq e '.package' -) if ! $(opm alpha render "${CONFIGS_DIR}" | yq -e eval-all "select(.schema == \"olm.package\" and .name == \"${PACKAGE_NAME}\")" - &> /dev/null); then echo "ERROR: cannot add \"${BUNDLE_IMAGE}\": package \"${PACKAGE_NAME}\" not found in \"${CONFIGS_DIR}\"" exit 1 fi PACKAGE_FILE="${CONFIGS_DIR}/${PACKAGE_NAME}/${PACKAGE_NAME}.yaml" echo "${BUNDLE}" >> ${PACKAGE_FILE} ``` ### Add a bundle image to a flat file index without knowing its package ```bash= #!/usr/bin/env bash set -e CONFIGS_DIR="configs" BUNDLE_IMAGE="quay.io/openshift-community-operators/etcd:v0.9.0" BUNDLE=$(opm alpha render "${BUNDLE_IMAGE}") PACKAGE_NAME=$(echo "${BUNDLE}" | yq e '.package' -) if ! $(opm alpha render "${CONFIGS_DIR}" | yq -e eval-all "select(.schema == \"olm.package\" and .name == \"${PACKAGE_NAME}\")" - &> /dev/null); then echo "ERROR: cannot add \"${BUNDLE_IMAGE}\": package \"${PACKAGE_NAME}\" not found in \"${CONFIGS_DIR}\"" exit 1 fi INDEX_FILE="${CONFIGS_DIR}/index.yaml" echo "${BUNDLE}" >> ${INDEX_FILE} ``` ### Initialize a new etcd package, and add etcd bundles ```bash= # Create a new configs directory rm -rf configs && mkdir configs # Since we're initializing the configs dir for our package, we need an # `olm.package` schema. We can derive one from a bundle of our choice. # We'll choose our latest versioned bundle. opm alpha init etcd \ --default-channel="" \ --icon=etcd.png \ --default-channel=singlenamespace-alpha \ --description="The etcd Operator creates and ..." >> configs/etcd.yaml # Next add all of the bundles opm alpha render \ quay.io/openshift-community-operators/etcd:v0.9.0 \ quay.io/openshift-community-operators/etcd:v0.9.2 \ quay.io/openshift-community-operators/etcd:v0.9.4 >> configs/etcd.yaml # We'll make a quick change here to v0.9.4 to simulate a mistake in our # bundle yq -i e 'select(.schema == "olm.bundle" and .name == "etcdoperator.v0.9.4") .properties[1].value.replaces = "etcdoperator.v0.9.0"' configs/etcd.yaml # Let's make sure our configs are valid opm validate configs || true # Uh-oh, we have two channel heads! Let's replace the broken # etcdoperator.v0.9.4 bundle with a new one. # Delete the broken one yq -i eval-all '[.] | del(.[] | select( .schema == "olm.bundle" and .package == "etcd" and .name == "etcdoperator.v0.9.4")) | .[] | splitDoc' configs/etcd.yaml # Re-add it from the corrected image. opm alpha render \ quay.io/openshift-community-operators/etcd:v0.9.4 >> configs/etcd.yaml # Let's also promote the etcd:v0.9.4 bundle to a new stable channel yq -i e 'select( .schema == "olm.bundle" and .package == "etcd" and .name == "etcdoperator.v0.9.4") .properties += [ {"type":"olm.channel", "value":{"name":"stable"}} ]' configs/etcd.yaml # Re-validate to make sure we're okay opm validate configs ``` ## Try out the prototype ``` https://github.com/joelanford/operator-registry/tree/declcfg-render ``` ## Usage examples ### `opm alpha init` #### Generate a package blob from a bundle image: ```console $ opm alpha init etcd --default-channel=singlenamespace-alpha --icon=etcd.png --description="The etcd Operator creates and ..." { "schema": "olm.package", "name": "etcd", "defaultChannel": "singlenamespace-alpha", "icon": { "base64data": "iVBORw0KGgoAAAANSUhEUgAAAOEAAADZCAYAAA...", "mediatype": "image/png" }, "description": "The etcd Operater creates and ..." } ``` ### `opm alpha render` #### Generate a bundle blob from a bundle image: ```console $ opm alpha render quay.io/openshift-community-operators/etcd:v0.9.4 | yq e -j { "schema": "olm.bundle", "name": "etcdoperator.v0.9.4", "package": "etcd", "image": "quay.io/openshift-community-operators/etcd:v0.9.4", "properties": [ { "type": "olm.channel", "value": { "name": "singlenamespace-alpha", "replaces": "etcdoperator.v0.9.2" } }, { "type": "olm.package", "value": { "packageName": "etcd", "version": "0.9.4" } }, { "type": "olm.gvk", "value": { "group": "etcd.database.coreos.com", "kind": "EtcdRestore", "version": "v1beta2" } }, { "type": "olm.gvk", "value": { "group": "etcd.database.coreos.com", "kind": "EtcdBackup", "version": "v1beta2" } }, { "type": "olm.gvk", "value": { "group": "etcd.database.coreos.com", "kind": "EtcdCluster", "version": "v1beta2" } } ] } ``` #### Generate declarative config from an existing sqlite-based index image. ```console $ opm alpha render quay.io/joelanford/example-operator-index:0.1.0 | yq e -j { "defaultChannel": "stable", "name": "example-operator", "schema": "olm.package" } { "image": "quay.io/joelanford/example-operator-bundle:0.1.0", "name": "example-operator.v0.1.0", "package": "example-operator", "properties": [ { "type": "olm.channel", "value": { "name": "stable" } }, { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } }, { "type": "olm.bundle.object", "value": { "data": "eyJhcGlWZXJzaW9uIjoib3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEiLCJraW5kIjoiQ2x1c3RlclNlcnZpY2VWZXJzaW9uIiwibWV0YWRhdGEiOnsiYW5ub3RhdGlvbnMiOnsiYWxtLWV4YW1wbGVzIjoiW1xuICB7XG4gICAgXCJhcGlWZXJzaW9uXCI6IFwiZXhhbXBsZS5jb20vdjFcIixcbiAgICBcImtpbmRcIjogXCJBcHBcIixcbiAgICBcIm1ldGFkYXRhXCI6IHtcbiAgICAgIFwibmFtZVwiOiBcImV4YW1wbGUtYXBwXCJcbiAgICB9LFxuICAgIFwic3BlY1wiOiB7XG4gICAgICBcInNpemVcIjogM1xuICAgIH1cbiAgfVxuXSIsImNhcGFiaWxpdGllcyI6IkJhc2ljIEluc3RhbGwifSwibmFtZSI6ImV4YW1wbGUtb3BlcmF0b3IudjAuMS4wIiwibmFtZXNwYWNlIjoicGxhY2Vob2xkZXIifSwic3BlYyI6eyJhcGlzZXJ2aWNlZGVmaW5pdGlvbnMiOnt9LCJjdXN0b21yZXNvdXJjZWRlZmluaXRpb25zIjp7Im93bmVkIjpbeyJkZXNjcmlwdGlvbiI6IkFwcCBpcyB0aGUgU2NoZW1hIGZvciB0aGUgYXBwcyBBUEkiLCJraW5kIjoiQXBwIiwibmFtZSI6ImFwcHMuZXhhbXBsZS5jb20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HlwZSI6Im9iamVjdCJ9LCJzdGF0dXMiOnsiZGVzY3JpcHRpb24iOiJBcHBTdGF0dXMgZGVmaW5lcyB0aGUgb2JzZXJ2ZWQgc3RhdGUgb2YgQXBwIiwidHlwZSI6Im9iamVjdCJ9fSwidHlwZSI6Im9iamVjdCJ9fSwidmVyc2lvbiI6InYxIiwidmVyc2lvbnMiOlt7Im5hbWUiOiJ2MSIsInNlcnZlZCI6dHJ1ZSwic3RvcmFnZSI6dHJ1ZX1dfX0=" } } ], "schema": "olm.bundle" } ``` #### Generate declarative config from an existing DC-based index image: ``` $ opm alpha render quay.io/joelanford/example-operator-index:0.2.0 | yq e -j { "defaultChannel": "stable", "name": "example-operator", "schema": "olm.package" } { "image": "quay.io/joelanford/example-operator-bundle:0.1.0", "name": "example-operator.v0.1.0", "package": "example-operator", "properties": [ { "type": "olm.channel", "value": { "name": "stable" } }, { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } }, { "type": "olm.bundle.object", "value": { "data": "eyJhcGlWZXJzaW9uIjoib3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEiLCJraW5kIjoiQ2x1c3RlclNlcnZpY2VWZXJzaW9uIiwibWV0YWRhdGEiOnsiYW5ub3RhdGlvbnMiOnsiYWxtLWV4YW1wbGVzIjoiW1xuICB7XG4gICAgXCJhcGlWZXJzaW9uXCI6IFwiZXhhbXBsZS5jb20vdjFcIixcbiAgICBcImtpbmRcIjogXCJBcHBcIixcbiAgICBcIm1ldGFkYXRhXCI6IHtcbiAgICAgIFwibmFtZVwiOiBcImV4YW1wbGUtYXBwXCJcbiAgICB9LFxuICAgIFwic3BlY1wiOiB7XG4gICAgICBcInNpemVcIjogM1xuICAgIH1cbiAgfVxuXSIsImNhcGFiaWxpdGllcyI6IkJhc2ljIEluc3RhbGwifSwibmFtZSI6ImV4YW1wbGUtb3BlcmF0b3IudjAuMS4wIiwib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21tdW5pdHkvY29udHJpYnV0b3JzL2RldmVsL3NpZy1hcmNoaXRlY3R1cmUvYXBpLWNvbnZlbnRpb25zLm1kI3R5cGVzLWtpbmRzIiwidHlwZSI6InN0cmluZyJ9LCJtZXRhZGF0YSI6eyJ0eXBlIjoib2JqZWN0In0sInNwZWMiOnsiZGVzY3JpcHRpb24iOiJBcHBTcGVjIGRlZmluZXMgdGhlIGRlc2lyZWQgc3RhdGUgb2YgQXBwIiwidHlwZSI6Im9iamVjdCJ9LCJzdGF0dXMiOnsiZGVzY3JpcHRpb24iOiJBcHBTdGF0dXMgZGVmaW5lcyB0aGUgb2JzZXJ2ZWQgc3RhdGUgb2YgQXBwIiwidHlwZSI6Im9iamVjdCJ9fSwidHlwZSI6Im9iamVjdCJ9fSwidmVyc2lvbiI6InYxIiwidmVyc2lvbnMiOlt7Im5hbWUiOiJ2MSIsInNlcnZlZCI6dHJ1ZSwic3RvcmFnZSI6dHJ1ZX1dfX0=" } } ], "schema": "olm.bundle" } { "image": "quay.io/joelanford/example-operator-bundle:0.2.0", "name": "example-operator.v0.2.0", "package": "example-operator", "properties": [ { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.2.0" } }, { "type": "olm.channel", "value": { "name": "stable", "replaces": "example-operator.v0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } } ], "schema": "olm.bundle" } ``` #### Generate declarative config from a local DC directory: ``` $ opm alpha render ./configs/ | yq e -j { "defaultChannel": "stable", "name": "example-operator", "schema": "olm.package" } { "image": "quay.io/joelanford/example-operator-bundle:0.1.0", "name": "example-operator.v0.1.0", "package": "example-operator", "properties": [ { "type": "olm.channel", "value": { "name": "stable" } }, { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } }, { "type": "olm.bundle.object", "value": { "data": "YXBpVmVyc2lvbjogb3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEKa2luZDogQ2x1c3RlclNlcnZpY2VWZXJzaW9uCm1ldGFkYXRhOgogIGFubm90YXRpb25zOgogICAgYWxtLWV4YW1wbGVzOiB8LQogICAgICBbCiAgICAgICAgewogICAgICAgICAgImFwaVZlcnNpb24iOiAiZXhhbXBsZS5jb20vdjEiLAogICAgICAgICAgImtpbmQiOiAiQXBwIiwKICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgIm5hbWUiOiAiZXhhbXBsZS1hcHAiCiAgICAgICAgICB9LAogICAgICAgICAgInNwZWMiOiB7CiAgICAgICAgICAgICJzaXplIjogMwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgXQogICAgY2FwYWJpbGl0aWVzOiBCYXNpYyBJbnN0YWxsCiAgbmFtZTogZXhhbXBsZS1vcGVyYXRvci52MC4xLjAKICBuYW1lc3BhY2U6IHBsYWNlaG9sZGVyCnNwZWM6CiAgYXBpc2VydmljZWRlZmluaXRpb25zOiB7fQogIGN1c3RvbXJlc291cmNlZGVmaW5pdGlvbnM6CiAgICBvd25lZDoKICAgIC0gZGVzY3JpcHRpb246IEFwcCBpcyB0aGUgU2NoZW1hIGZvciB0aGUgYXBwcyBBUEkKICAgICAga2luZDogQXBwCiAgICAgIG5hbWU6IGFwcHMuZXhhbXBsZS5jb20KICAgICAgdmVyc2lvbjogdjEKICBkaXNwbGF5TmFtZTogRXhhbXBsZSBPcGVyYXRvcgogIGljb246CiAgLSBiYXNlNjRkYXRhOiAiIgogICAgbWVkaWF0eXBlOiAiIgogIGluc3RhbGw6CiAgICBzcGVjOgogICAgICBkZXBsb3ltZW50czoKICAgICAgLSBuYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgc3BlYzoKICAgICAgICAgIHJlcGxpY2FzOiAxCiAgICAgICAgICBzZWxlY3RvcjoKICAgICAgICAgICAgbWF0Y2hMYWJlbHM6CiAgICAgICAgICAgICAgbmFtZTogZXhhbXBsZS1vcGVyYXRvcgogICAgICAgICAgc3RyYXRlZ3k6IHt9CiAgICAgICAgICB0ZW1wbGF0ZToKICAgICAgICAgICAgbWV0YWRhdGE6CiAgICAgICAgICAgICAgbGFiZWxzOgogICAgICAgICAgICAgICAgbmFtZTogZXhhbXBsZS1vcGVyYXRvcgogICAgICAgICAgICBzcGVjOgogICAgICAgICAgICAgIGNvbnRhaW5lcnM6CiAgICAgICAgICAgICAgLSBjb21tYW5kOgogICAgICAgICAgICAgICAgLSBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICBlbnY6CiAgICAgICAgICAgICAgICAtIG5hbWU6IFdBVENIX05BTUVTUEFDRQogICAgICAgICAgICAgICAgICB2YWx1ZUZyb206CiAgICAgICAgICAgICAgICAgICAgZmllbGRSZWY6CiAgICAgICAgICAgICAgICAgICAgICBmaWVsZFBhdGg6IG1ldGFkYXRhLmFubm90YXRpb25zWydvbG0udGFyZ2V0TmFtZXNwYWNlcyddCiAgICAgICAgICAgICAgICAtIG5hbWU6IFBPRF9OQU1FCiAgICAgICAgICAgICAgICAgIHZhbHVlRnJvbToKICAgICAgICAgICAgICAgICAgICBmaWVsZFJlZjoKICAgICAgICAgICAgICAgICAgICAgIGZpZWxkUGF0aDogbWV0YWRhdGEubmFtZQogICAgICAgICAgICAgICAgLSBuYW1lOiBPUEVSQVRPUl9OQU1FCiAgICAgICAgICAgICAgICAgIHZhbHVlOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICBpbWFnZTogcXVheS5pby9qb2VsYW5mb3JkL2V4YW1wbGUtb3BlcmF0b3JAc2hhMjU2OmE1ZjhmY2U3NDA5NDVmY2RhYmY3ZjhhYzZmY2Q2ZjBmOTViM2E4MjhmYmYxN2U0M2RlMjUxZGU5ZDU1NDQxMTgKICAgICAgICAgICAgICAgIGltYWdlUHVsbFBvbGljeTogQWx3YXlzCiAgICAgICAgICAgICAgICBuYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICByZXNvdXJjZXM6IHt9CiAgICAgICAgICAgICAgc2VydmljZUFjY291bnROYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgIHBlcm1pc3Npb25zOgogICAgICAtIHJ1bGVzOgogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSAiIgogICAgICAgICAgcmVzb3VyY2VzOgogICAgICAgICAgLSBwb2RzCiAgICAgICAgICAtIHNlcnZpY2VzCiAgICAgICAgICAtIHNlcnZpY2VzL2ZpbmFsaXplcnMKICAgICAgICAgIC0gZW5kcG9pbnRzCiAgICAgICAgICAtIHBlcnNpc3RlbnR2b2x1bWVjbGFpbXMKICAgICAgICAgIC0gZXZlbnRzCiAgICAgICAgICAtIGNvbmZpZ21hcHMKICAgICAgICAgIC0gc2VjcmV0cwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgICAgLSBkZWxldGUKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGxpc3QKICAgICAgICAgIC0gcGF0Y2gKICAgICAgICAgIC0gdXBkYXRlCiAgICAgICAgICAtIHdhdGNoCiAgICAgICAgLSBhcGlHcm91cHM6CiAgICAgICAgICAtIGFwcHMKICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gZGVwbG95bWVudHMKICAgICAgICAgIC0gZGFlbW9uc2V0cwogICAgICAgICAgLSByZXBsaWNhc2V0cwogICAgICAgICAgLSBzdGF0ZWZ1bHNldHMKICAgICAgICAgIHZlcmJzOgogICAgICAgICAgLSBjcmVhdGUKICAgICAgICAgIC0gZGVsZXRlCiAgICAgICAgICAtIGdldAogICAgICAgICAgLSBsaXN0CiAgICAgICAgICAtIHBhdGNoCiAgICAgICAgICAtIHVwZGF0ZQogICAgICAgICAgLSB3YXRjaAogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBtb25pdG9yaW5nLmNvcmVvcy5jb20KICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gc2VydmljZW1vbml0b3JzCiAgICAgICAgICB2ZXJiczoKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBhcHBzCiAgICAgICAgICByZXNvdXJjZU5hbWVzOgogICAgICAgICAgLSBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtIGRlcGxveW1lbnRzL2ZpbmFsaXplcnMKICAgICAgICAgIHZlcmJzOgogICAgICAgICAgLSB1cGRhdGUKICAgICAgICAtIGFwaUdyb3VwczoKICAgICAgICAgIC0gIiIKICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gcG9kcwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGdldAogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBhcHBzCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtIHJlcGxpY2FzZXRzCiAgICAgICAgICAtIGRlcGxveW1lbnRzCiAgICAgICAgICB2ZXJiczoKICAgICAgICAgIC0gZ2V0CiAgICAgICAgLSBhcGlHcm91cHM6CiAgICAgICAgICAtIGV4YW1wbGUuY29tCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtICcqJwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgICAgLSBkZWxldGUKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGxpc3QKICAgICAgICAgIC0gcGF0Y2gKICAgICAgICAgIC0gdXBkYXRlCiAgICAgICAgICAtIHdhdGNoCiAgICAgICAgc2VydmljZUFjY291bnROYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICBzdHJhdGVneTogZGVwbG95bWVudAogIGluc3RhbGxNb2RlczoKICAtIHN1cHBvcnRlZDogdHJ1ZQogICAgdHlwZTogT3duTmFtZXNwYWNlCiAgLSBzdXBwb3J0ZWQ6IHRydWUKICAgIHR5cGU6IFNpbmdsZU5hbWVzcGFjZQogIC0gc3VwcG9ydGVkOiBmYWxzZQogICAgdHlwZTogTXVsdGlOYW1lc3BhY2UKICAtIHN1cHBvcnRlZDogdHJ1ZQogICAgdHlwZTogQWxsTmFtZXNwYWNlcwogIGtleXdvcmRzOgogIC0gIiIKICBtYWludGFpbmVyczoKICAtIHt9CiAgbWF0dXJpdHk6IGFscGhhCiAgcHJvdmlkZXI6IHt9CiAgdmVyc2lvbjogMC4xLjAK" } }, { "type": "olm.bundle.object", "value": { "data": "YXBpVmVyc2lvbjogYXBpZXh0ZW5zaW9ucy5rOHMuaW8vdjFiZXRhMQpraW5kOiBDdXN0b21SZXNvdXJjZURlZmluaXRpb24KbWV0YWRhdGE6CiAgbmFtZTogYXBwcy5leGFtcGxlLmNvbQpzcGVjOgogIGdyb3VwOiBleGFtcGxlLmNvbQogIG5hbWVzOgogICAga2luZDogQXBwCiAgICBsaXN0S2luZDogQXBwTGlzdAogICAgcGx1cmFsOiBhcHBzCiAgICBzaW5ndWxhcjogYXBwCiAgc2NvcGU6IE5hbWVzcGFjZWQKICBzdWJyZXNvdXJjZXM6CiAgICBzdGF0dXM6IHt9CiAgdmFsaWRhdGlvbjoKICAgIG9wZW5BUElWM1NjaGVtYToKICAgICAgZGVzY3JpcHRpb246IEFwcCBpcyB0aGUgU2NoZW1hIGZvciB0aGUgYXBwcyBBUEkKICAgICAgcHJvcGVydGllczoKICAgICAgICBhcGlWZXJzaW9uOgogICAgICAgICAgZGVzY3JpcHRpb246ICdBUElWZXJzaW9uIGRlZmluZXMgdGhlIHZlcnNpb25lZCBzY2hlbWEgb2YgdGhpcyByZXByZXNlbnRhdGlvbgogICAgICAgICAgICBvZiBhbiBvYmplY3QuIFNlcnZlcnMgc2hvdWxkIGNvbnZlcnQgcmVjb2duaXplZCBzY2hlbWFzIHRvIHRoZSBsYXRlc3QKICAgICAgICAgICAgaW50ZXJuYWwgdmFsdWUsIGFuZCBtYXkgcmVqZWN0IHVucmVjb2duaXplZCB2YWx1Z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nZTogdHJ1ZQo=" } } ], "schema": "olm.bundle" } { "image": "quay.io/joelanford/example-operator-bundle:0.2.0", "name": "example-operator.v0.2.0", "package": "example-operator", "properties": [ { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.2.0" } }, { "type": "olm.channel", "value": { "name": "stable", "replaces": "example-operator.v0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } }, { "type": "olm.bundle.object", "value": { "data": "YXBpVmVyc2lvbjogb3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEKa2luZDogQ2x1c3RlclNlcnZpY2VWZXJzaW9uCm1ldGFkYXRhOgogIGFubm90YXRpb25zOgogICAgYWxtLWV4YW1wbGVzOiB8LQogICAgICBbCiAgICAgICAgewogICAgICAgICAgImFwaVZlcnNpb24iOiAiZXhhbXBsZS5jb20vdjEiLAogICAgICAgICAgImtpbmQiOiAiQXBwIiwKICAgICAgICAgICJtZXRhZGF0YSI6IHsKICAgICAgICAgICAgIm5hbWUiOiAiZXhhbXBsZS1hcHAiCiAgICAgICAgICB9LAogICAgICAgICAgInNwZWMiOiB7CiAgICAgICAgICAgICJzaXplIjogMwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgXQogICAgY2FwYWJpbGl0aWVzOiBCYXNpYyBJbnN0YWxsCiAgbmFtZTogZXhhbXBsZS1vcGVyYXRvci52MC4yLjAKICBuYW1lc3BhY2U6IHBsYWNlaG9sZGVyCnNwZWM6CiAgYXBpc2VydmljZWRlZmluaXRpb25zOiB7fQogIGN1c3RvbXJlc291cmNlZGVmaW5pdGlvbnM6CiAgICBvd25lZDoKICAgIC0gZGVzY3JpcHRpb246IEFwcCBpcyB0aGUgU2NoZW1hIGZvciB0aGUgYXBwcyBBUEkKICAgICAga2luZDogQXBwCiAgICAgIG5hbWU6IGFwcHMuZXhhbXBsZS5jb20KICAgICAgdmVyc2lvbjogdjEKICBkaXNwbGF5TmFtZTogRXhhbXBsZSBPcGVyYXRvcgogIGljb246CiAgLSBiYXNlNjRkYXRhOiAiIgogICAgbWVkaWF0eXBlOiAiIgogIGluc3RhbGw6CiAgICBzcGVjOgogICAgICBkZXBsb3ltZW50czoKICAgICAgLSBuYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgc3BlYzoKICAgICAgICAgIHJlcGxpY2FzOiAxCiAgICAgICAgICBzZWxlY3RvcjoKICAgICAgICAgICAgbWF0Y2hMYWJlbHM6CiAgICAgICAgICAgICAgbmFtZTogZXhhbXBsZS1vcGVyYXRvcgogICAgICAgICAgc3RyYXRlZ3k6IHt9CiAgICAgICAgICB0ZW1wbGF0ZToKICAgICAgICAgICAgbWV0YWRhdGE6CiAgICAgICAgICAgICAgbGFiZWxzOgogICAgICAgICAgICAgICAgbmFtZTogZXhhbXBsZS1vcGVyYXRvcgogICAgICAgICAgICBzcGVjOgogICAgICAgICAgICAgIGNvbnRhaW5lcnM6CiAgICAgICAgICAgICAgLSBjb21tYW5kOgogICAgICAgICAgICAgICAgLSBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICBlbnY6CiAgICAgICAgICAgICAgICAtIG5hbWU6IFdBVENIX05BTUVTUEFDRQogICAgICAgICAgICAgICAgICB2YWx1ZUZyb206CiAgICAgICAgICAgICAgICAgICAgZmllbGRSZWY6CiAgICAgICAgICAgICAgICAgICAgICBmaWVsZFBhdGg6IG1ldGFkYXRhLmFubm90YXRpb25zWydvbG0udGFyZ2V0TmFtZXNwYWNlcyddCiAgICAgICAgICAgICAgICAtIG5hbWU6IFBPRF9OQU1FCiAgICAgICAgICAgICAgICAgIHZhbHVlRnJvbToKICAgICAgICAgICAgICAgICAgICBmaWVsZFJlZjoKICAgICAgICAgICAgICAgICAgICAgIGZpZWxkUGF0aDogbWV0YWRhdGEubmFtZQogICAgICAgICAgICAgICAgLSBuYW1lOiBPUEVSQVRPUl9OQU1FCiAgICAgICAgICAgICAgICAgIHZhbHVlOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICBpbWFnZTogcXVheS5pby9qb2VsYW5mb3JkL2V4YW1wbGUtb3BlcmF0b3JAc2hhMjU2OjIzZmM3M2MzYzIxMGNmNDg3MzU4NmEwYTllY2E0NjlhMGYzNGFiOTk1NTA1YmU5OTM1YjBmNjdhNTU5NjI1YjUKICAgICAgICAgICAgICAgIGltYWdlUHVsbFBvbGljeTogQWx3YXlzCiAgICAgICAgICAgICAgICBuYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICAgICAgICByZXNvdXJjZXM6IHt9CiAgICAgICAgICAgICAgc2VydmljZUFjY291bnROYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICAgIHBlcm1pc3Npb25zOgogICAgICAtIHJ1bGVzOgogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSAiIgogICAgICAgICAgcmVzb3VyY2VzOgogICAgICAgICAgLSBwb2RzCiAgICAgICAgICAtIHNlcnZpY2VzCiAgICAgICAgICAtIHNlcnZpY2VzL2ZpbmFsaXplcnMKICAgICAgICAgIC0gZW5kcG9pbnRzCiAgICAgICAgICAtIHBlcnNpc3RlbnR2b2x1bWVjbGFpbXMKICAgICAgICAgIC0gZXZlbnRzCiAgICAgICAgICAtIGNvbmZpZ21hcHMKICAgICAgICAgIC0gc2VjcmV0cwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgICAgLSBkZWxldGUKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGxpc3QKICAgICAgICAgIC0gcGF0Y2gKICAgICAgICAgIC0gdXBkYXRlCiAgICAgICAgICAtIHdhdGNoCiAgICAgICAgLSBhcGlHcm91cHM6CiAgICAgICAgICAtIGFwcHMKICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gZGVwbG95bWVudHMKICAgICAgICAgIC0gZGFlbW9uc2V0cwogICAgICAgICAgLSByZXBsaWNhc2V0cwogICAgICAgICAgLSBzdGF0ZWZ1bHNldHMKICAgICAgICAgIHZlcmJzOgogICAgICAgICAgLSBjcmVhdGUKICAgICAgICAgIC0gZGVsZXRlCiAgICAgICAgICAtIGdldAogICAgICAgICAgLSBsaXN0CiAgICAgICAgICAtIHBhdGNoCiAgICAgICAgICAtIHVwZGF0ZQogICAgICAgICAgLSB3YXRjaAogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBtb25pdG9yaW5nLmNvcmVvcy5jb20KICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gc2VydmljZW1vbml0b3JzCiAgICAgICAgICB2ZXJiczoKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBhcHBzCiAgICAgICAgICByZXNvdXJjZU5hbWVzOgogICAgICAgICAgLSBleGFtcGxlLW9wZXJhdG9yCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtIGRlcGxveW1lbnRzL2ZpbmFsaXplcnMKICAgICAgICAgIHZlcmJzOgogICAgICAgICAgLSB1cGRhdGUKICAgICAgICAtIGFwaUdyb3VwczoKICAgICAgICAgIC0gIiIKICAgICAgICAgIHJlc291cmNlczoKICAgICAgICAgIC0gcG9kcwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGdldAogICAgICAgIC0gYXBpR3JvdXBzOgogICAgICAgICAgLSBhcHBzCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtIHJlcGxpY2FzZXRzCiAgICAgICAgICAtIGRlcGxveW1lbnRzCiAgICAgICAgICB2ZXJiczoKICAgICAgICAgIC0gZ2V0CiAgICAgICAgLSBhcGlHcm91cHM6CiAgICAgICAgICAtIGV4YW1wbGUuY29tCiAgICAgICAgICByZXNvdXJjZXM6CiAgICAgICAgICAtICcqJwogICAgICAgICAgdmVyYnM6CiAgICAgICAgICAtIGNyZWF0ZQogICAgICAgICAgLSBkZWxldGUKICAgICAgICAgIC0gZ2V0CiAgICAgICAgICAtIGxpc3QKICAgICAgICAgIC0gcGF0Y2gKICAgICAgICAgIC0gdXBkYXRlCiAgICAgICAgICAtIHdhdGNoCiAgICAgICAgc2VydmljZUFjY291bnROYW1lOiBleGFtcGxlLW9wZXJhdG9yCiAgICBzdHJhdGVneTogZGVwbG95bWVudAogIGluc3RhbGxNb2RlczoKICAtIHN1cHBvcnRlZDogdHJ1ZQogICAgdHlwZTogT3duTmFtZXNwYWNlCiAgLSBzdXBwb3J0ZWQ6IHRydWUKICAgIHR5cGU6IFNpbmdsZU5hbWVzcGFjZQogIC0gc3VwcG9ydGVkOiBmYWxzZQogICAgdHlwZTogTXVsdGlOYW1lc3BhY2UKICAtIHN1cHBvcnRlZDogdHJ1ZQogICAgdHlwZTogQWxsTmFtZXNwYWNlcwogIGtleXdvcmRzOgogIC0gIiIKICBtYWludGFpbmVyczoKICAtIHt9CiAgbWF0dXJpdHk6IGFscGhhCiAgcHJvdmlkZXI6IHt9CiAgcmVwbGFjZXM6IGV4YW1wbGUtb3BlcmF0b3IudjAuMS4wCiAgdmVyc2lvbjogMC4yLjAK" } }, { "type": "olm.bundle.object", "value": { "data": "YXBpVmVyc2lvbjogYXBpZXh0ZW5zaW9ucy5rOHMuaW8vdjFiZXRhMQpraW5kOiBDdXN0b21SZXNvdXJjZURlZmluaXRpb24KbWV0YWRhdGE6CiAgbmFtZTogYXBwcy5leGFtcGxlLmNvbQpzcGVjOgogIGdyb3VwOiBleGFtcGxlLmNvbQogIG5hbWVzOgogICAga2luZDogQXBwCiAgICBsaXN0S2luZDogQXBwTGlzdAogICAgcGx1cmFsOiBhcHBzCiAgICBzaW5ndWxhcjogYXBwCiAgc2NvcGU6IE5hbWVzcGFjZWQKICBzdWJyZXNvdXJjZXM6CiAgICBzdGF0dXM6IHt9CiAgdmFsaWRhdGlvbjoKICAgIG9wZW5BUElWM1NjaGVtYToKICAgICAgZGVzY3JpcHRpb246IEFwcCBpcyB0aGUgU2NoZW1hIGZvciB0aGUgYXBwcyBBUEkKICAgICAgcHJvcGVydGllczoKICAgICAgICBhcGlWZXJzaW9uOgogICAgICAgICAgZGVzY3JpcHRpb246ICdBUElWZXJzaW9uIGRlZmluZXMgdGhlIHZlcnNpb25lZCBzY2hlbWEgb2YgdGhpcyByZXByZXNlbnRhdGlvbgogICAgICAgICAgICBvZiBhbiBvYmplY3QuIFNlcnZlcnMgc2hvdWxkIGNvbnZlcnQgcmVjb2duaXplZCBzY2hlbWFzIHRvIHRoZSBsYXRlc3QKICAgICAgICAgICAgaW50ZXJuYWwgdmFsdWUsIGFuZCBtYXkgcmVqZWN0IHVucmVjb2duaXplZCB2YWx1ZXMuIE1vcmUgaW5mbzogaHR0cHM6Ly9naXQuazhzLmlvL2NvbW11bml0eS9jb250cmlidXRvcnMvZGV2ZWwvc2lnLWFyY2hpdGVjdHVyZS9hcGktY29udmVudGlvbnMubWQjcmVzb3VyY2VzJwogICAgICAgICAgdHlwZTogc3RyaW5nCiAgICAgICAga2luZDoKICAgICAgICAgIGRlc2NyaXB0aW9uOiAnS2luZCBpcyBhIHN0cmluZyB2YWx1ZSByZXByZXNlbnRpbmcgdGhlIFJFU1QgcmVzb3VyY2UgdGhpcwogICAgICAgICAgICBvYmplY3QgcmVwcmVzZW50cy4gU2VydmVycyBtYXkgaW5mZXIgdGhpcyBmcm9tIHRoZSBlbmRwb2ludCB0aGUgY2xpZW50CiAgICAgICAgICAgIHN1Ym1pdHMgcmVxdWVzdHMgdG8uIENhbm5vdCBiZSB1cGRhdGVkLiBJbiBDYW1lbENhc2UuIE1vcmUgaW5mbzogaHR0cHM6Ly9naXQuazhzLmlvL2NvbW11bml0eS9jb250cmlidXRvcnMvZGV2ZWwvc2lnLWFyY2hpdGVjdHVyZS9hcGktY29udmVudGlvbnMubWQjdHlwZXMta2luZHMnCiAgICAgICAgICB0eXBlOiBzdHJpbmcKICAgICAgICBtZXRhZGF0YToKICAgICAgICAgIHR5cGU6IG9iamVjdAogICAgICAgIHNwZWM6CiAgICAgICAgICBkZXNjcmlwdGlvbjogQXBwU3BlYyBkZWZpbmVzIHRoZSBkZXNpcmVkIHN0YXRlIG9mIEFwcAogICAgICAgICAgdHlwZTogb2JqZWN0CiAgICAgICAgc3RhdHVzOgogICAgICAgICAgZGVzY3JpcHRpb246IEFwcFN0YXR1cyBkZWZpbmVzIHRoZSBvYnNlcnZlZCBzdGF0ZSBvZiBBcHAKICAgICAgICAgIHR5cGU6IG9iamVjdAogICAgICB0eXBlOiBvYmplY3QKICB2ZXJzaW9uOiB2MQogIHZlcnNpb25zOgogIC0gbmFtZTogdjEKICAgIHNlcnZlZDogdHJ1ZQogICAgc3RvcmFnZTogdHJ1ZQo=" } } ], "schema": "olm.bundle" } ``` #### Generate declarative config from an index image and bundle image: ``` $ ./bin/opm alpha render quay.io/joelanford/example-operator-index:0.1.0 quay.io/joelanford/example-operator-bundle:0.2.0 | yq e -j { "defaultChannel": "stable", "name": "example-operator", "schema": "olm.package" } { "image": "quay.io/joelanford/example-operator-bundle:0.1.0", "name": "example-operator.v0.1.0", "package": "example-operator", "properties": [ { "type": "olm.channel", "value": { "name": "stable" } }, { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } }, { "type": "olm.bundle.object", "value": { "data": "eyJhcGlWZXJzaW9uIjoib3BlcmF0b3JzLmNvcmVvcy5jb20vdjFhbHBoYTEiLCJraW5kIjoiQ2x1c3RlclNlcnZpY2VWZXJzaW9uIiwibWV0YWRhdGEiOnsiYW5ub3RhdGlvbnMiOnsiYWxtLWV4YW1wbGVzIjoiW1xuICB7XG4gICAgXCJhcGlWZXJzaW9uXCI6IFwiZXhhbXBsZS5jb20vdjFcIixcbiAgICBcImtpbmRcIjogXCJBcHBcIixcbiAgICBcIm1ldGFkYXRhXCI6IHtcbiAgICAgIFwibmFtZVwiOiBcImV4YW1wbGUtYXBwXCJcbiAgICB9LFxuICAgIFwic3BlY1wiOiB7XG4gICAgICBcInN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dWJtaXRzIHJlcXVlc3RzIHRvLiBDYW5ub3QgYmUgdXBkYXRlZC4gSW4gQ2FtZWxDYXNlLiBNb3JlIGluZm86IGh0dHBzOi8vZ2l0Lms4cy5pby9jb21tdW5pdHkvY29udHJpYnV0b3JzL2RldmVsL3NpZy1hcmNoaXRlY3R1cmUvYXBpLWNvbnZlbnRpb25zLm1kI3R5cGVzLWtpbmRzIiwidHlwZSI6InN0cmluZyJ9LCJtZXRhZGF0YSI6eyJ0eXBlIjoib2JqZWN0In0sInNwZWMiOnsiZGVzY3JpcHRpb24iOiJBcHBTcGVjIGRlZmluZXMgdGhlIGRlc2lyZWQgc3RhdGUgb2YgQXBwIiwidHlwZSI6Im9iamVjdCJ9LCJzdGF0dXMiOnsiZGVzY3JpcHRpb24iOiJBcHBTdGF0dXMgZGVmaW5lcyB0aGUgb2JzZXJ2ZWQgc3RhdGUgb2YgQXBwIiwidHlwZSI6Im9iamVjdCJ9fSwidHlwZSI6Im9iamVjdCJ9fSwidmVyc2lvbiI6InYxIiwidmVyc2lvbnMiOlt7Im5hbWUiOiJ2MSIsInNlcnZlZCI6dHJ1ZSwic3RvcmFnZSI6dHJ1ZX1dfX0=" } } ], "schema": "olm.bundle" } { "image": "quay.io/joelanford/example-operator-bundle:0.2.0", "name": "example-operator.v0.2.0", "package": "example-operator", "properties": [ { "type": "olm.package", "value": { "packageName": "example-operator", "version": "0.2.0" } }, { "type": "olm.channel", "value": { "name": "stable", "replaces": "example-operator.v0.1.0" } }, { "type": "olm.gvk", "value": { "group": "example.com", "kind": "App", "version": "v1" } } ], "schema": "olm.bundle" } ```

    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