Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional spec.replaces field to CSV for update graph compliance #572

Merged
merged 1 commit into from
Feb 7, 2024

Commits on Feb 1, 2024

  1. Add optional spec.replaces field to CSV for update graph compliance

    The way we generate our CSVs uses OLM's skipRange functionality. This is fine,
    but using only this leads to older versions becoming unavailable after the
    fact -- see the warning at [1].
    
    By adding an optional spec.replaces to our CSV we allow update testing as
    well as actual production updates for downstream builds that leverage it.
    
    Populating the field requires knowledge of the latest-released bundle,
    so we take it from an environment variable to be provided by the
    builder. If this is unset we don't include the spec.replaces field at
    all -- leaving previous behavior unchanged.
    
    Resolves #559
    Related: STF-1658
    
    [1] https://olm.operatorframework.io/docs/concepts/olm-architecture/operator-catalog/creating-an-update-graph/#skiprange
    
    (cherry picked from commit 99221fb)
    compi-migui committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    1cffbb9 View commit details
    Browse the repository at this point in the history