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

Use server side diff #48

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ function run() {
core.info(`Found apps: ${apps.map(a => a.metadata.name).join(', ')}`);
const diffs = [];
yield asyncForEach(apps, (app) => __awaiter(this, void 0, void 0, function* () {
const command = `app diff ${app.metadata.name} --local=${app.spec.source.path}`;
const command = `app diff ${app.metadata.name} --server-side-generate`;
try {
core.info(`Running: argocd ${command}`);
// ArgoCD app diff will exit 1 if there is a diff, so always catch,
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async function run(): Promise<void> {
const diffs: Diff[] = [];

await asyncForEach(apps, async app => {
const command = `app diff ${app.metadata.name} --local=${app.spec.source.path}`;
const command = `app diff ${app.metadata.name} --server-side-generate`;
try {
core.info(`Running: argocd ${command}`);
// ArgoCD app diff will exit 1 if there is a diff, so always catch,
Expand Down
Loading