Skip to content

Commit 24349ec

Browse files
committed
fix: ensure report has newline and updates gitignore
1 parent 8aa496f commit 24349ec

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ go.work
2323
kalco-dump-*/
2424
kalco-dump-*
2525
guestbook-exports/
26-
demos/
26+
2727

2828
# IDE files
2929
.vscode/

cmd/validate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ func runValidate() error {
185185
// Output Report
186186
if validateReportFile != "" {
187187
if totalDiff == "" {
188-
totalDiff = "No drift detected."
188+
totalDiff = "No drift detected.\n"
189+
} else if !strings.HasSuffix(totalDiff, "\n") {
190+
totalDiff += "\n"
189191
}
190192
if err := os.WriteFile(validateReportFile, []byte(totalDiff), 0644); err != nil {
191193
fmt.Fprintf(os.Stderr, "ERROR: Failed to write report: %v\n", err)

demos/gitops-validation/helm/.github/workflows/validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
2222
# Install Kalco
23-
curl -sL https://github.com/graz-dev/kalco/releases/download/v0.1.19/kalco_Linux_x86_64.tar.gz | tar xz
23+
curl -sL https://github.com/graz-dev/kalco/releases/download/v0.1.20/kalco_Linux_x86_64.tar.gz | tar xz
2424
sudo mv kalco /usr/local/bin/
2525
2626
- name: Configure Kalco

demos/gitops-validation/raw-resources/.github/workflows/validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Tools
2222
run: |
2323
# Install Kalco
24-
curl -sL https://github.com/graz-dev/kalco/releases/download/v0.1.18/kalco_Linux_x86_64.tar.gz | tar xz
24+
curl -sL https://github.com/graz-dev/kalco/releases/download/v0.1.20/kalco_Linux_x86_64.tar.gz | tar xz
2525
sudo mv kalco /usr/local/bin/
2626
2727
- name: Configure Kalco Context

0 commit comments

Comments
 (0)