Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 910 Bytes

File metadata and controls

38 lines (30 loc) · 910 Bytes

kustomize-diff-action

This is a composite action to show the diff of kustomize build between head and base ref of a pull request. It depends on https://github.com/int128/diff-action.

Getting Started

Here is an example for a project of kubebuilder.

name: manifest

on:
  pull_request:
    branches: [master]
    paths:
      - config/**
      - .github/workflows/manifest.yaml

jobs:
  diff:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v3
      - uses: int128/kustomize-action/diff@v1
        with:
          write-individual-files: true
          kustomization: |
            config/default/kustomization.yaml

How it works

  1. It runs kustomize build against the head branch.
  2. It runs kustomize build against the base branch. It ignores any kustomize errors on the base branch.
  3. It shows the diff between head and base branch.