An open API service indexing awesome lists of open source software.

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.

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 }}"
```