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

Merged
merged 3 commits into from
Sep 24, 2024

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.

Also, it will only work against a cluster that has at least this version of the AppCat function installed. Otherwise crank won't be able to render it correctly.

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 27 times, most recently from 5516e40 to 2fb7aa0 Compare September 24, 2024 09:55
@Kidswiss Kidswiss requested review from a team, TheBigLee, wejdross and zugao and removed request for a team September 24, 2024 11:10
@Kidswiss Kidswiss merged commit b2194fb into master Sep 24, 2024
8 checks passed
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.

2 participants