https://github.com/berquerant/k8s-object-diff
This action compares manifests for each corresponding object.
https://github.com/berquerant/k8s-object-diff
diff docker github-actions kubernetes
Last synced: 2 months ago
JSON representation
This action compares manifests for each corresponding object.
- Host: GitHub
- URL: https://github.com/berquerant/k8s-object-diff
- Owner: berquerant
- Created: 2024-12-23T13:20:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T08:39:17.000Z (over 1 year ago)
- Last Synced: 2025-01-26T09:24:40.444Z (over 1 year ago)
- Topics: diff, docker, github-actions, kubernetes
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s-object-diff
This action compares manifests for each corresponding object.
## Inputs
### `left`
**Required** Left manifest file.
### `right`
**Required** Right manifest file.
### `fail-on-diff`
Fail the action if a diff is detected.
## Outputs
### `status`
Exit status, 0 if left = right, 1 if left != right, otherwise trouble.
## Usage
``` yaml
jobs:
objdiff_job:
runs-on: ubuntu-latest
name: k8s-object-diff
steps:
- name: Diff manifests
uses: berquerant/k8s-object-diff@v0.3.0
id: objdiff
with:
left: left.yml
right: right.yml
- name: Show status
run: echo "status was ${{ steps.objdiff.outputs.status }}"
```