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 script to generate diffs between a cluster and the local branch #231

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Kidswiss
Copy link
Contributor

@Kidswiss Kidswiss commented Sep 10, 2024

Summary

make render-diff will run a script, that connects to the current cluster in KUBECONFIG and runs a diff against the current AppCat branch.

It leverages Crossplane's crank utility to render the result of a single function reconcile. It then uses dyff, a YAML and K8s aware diff tool, to actually show the diff itself.

Limitations: it can currently only generate a single reconcile run against the current state. If a function needs multiple reconciles to change the desired state, it won't show up in the diff.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@Kidswiss Kidswiss added the minor label Sep 10, 2024
@Kidswiss Kidswiss force-pushed the add/diff_script branch 2 times, most recently from be84509 to 7f06c50 Compare September 12, 2024 09:32
@Kidswiss Kidswiss force-pushed the add/diff_script branch 6 times, most recently from 0dc4904 to b905103 Compare September 20, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant