How to use the chartpress.ActionStoreDeprecated function in chartpress

To help you get started, we’ve selected a few chartpress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterhub / chartpress / chartpress.py View on Github external
help='Skip the image build step.',
    )
    skip_or_force_build_group.add_argument(
        '--force-build',
        action='store_true',
        help='Enforce the image build step, regardless of if the image already is available either locally or remotely.',
    )
    argparser.add_argument(
        '--version',
        action='store_true',
        help='Print current chartpress version and exit.',
    )

    argparser.add_argument(
        '--commit-range',
        action=ActionStoreDeprecated,
        help='Deprecated: this flag will be ignored. The new logic to determine if an image needs to be rebuilt does not require this. It will find the time in git history where the image was last in need of a rebuild due to changes, and check if that build exists locally or remotely already.',
    )

    args = argparser.parse_args(args)

    if args.version:
        print(f"chartpress version {__version__}")
        return

    with open('chartpress.yaml') as f:
        config = yaml.load(f)

    # main logic
    # - loop through each chart listed in chartpress.yaml
    #   - build chart.yaml (--reset)
    #   - build images (--skip-build | --reset)