Skip to content

Add option to compare between local and deployed configurations #844

Closed
@eladbs

Description

@eladbs

Checklist

Describe the problem you'd like to have solved

Hi,
Today our CI/CD workflow with the deploy CLI tool is lacking the option to compare between the local and the deployed configuration.
We use gitops for publishing configuration to our tenants. Each new PR is reviewed against the deployed configuration and approved before being merged.
We want the ability to compare each of the files against the deployed version.
Need to support yaml, js and html.

Describe the ideal solution

Add the option to compare. For i.e., to run:

a0deploy compare --config_file=config.json --input-folder=~/local

This should result in a proper diff view of the changes between the configuration in the ~/local folder and the configuration deployed in the tenant.

Alternatives and current workarounds

There are 3rd party diff/compare tools but they lack support for the custom attribute mapping in the config and they are not context aware, just comparing text line by line.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions