Skip to content

Commit 10cc5aa

Browse files
committed
fix: k8s_apply remove dry_run
1 parent 3c17933 commit 10cc5aa

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/k8s_apply.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,19 @@ jobs:
4747

4848
- name: Generate Kustomization
4949
shell: bash
50+
env:
51+
KUBECTL_EXTERNAL_DIFF: "colordiff -N -u"
5052
run: |
53+
sudo apt-get update 1>/dev/null
54+
sudo apt-get install colordiff 1>/dev/null
5155
kubectl kustomize ${{ env.KUBERNETES_MANIFEST_PATH }} --output apply.yml
52-
cat apply.yml
53-
56+
kubectl diff --filename apply.yml || true
57+
5458
- name: Apply Kustomization
5559
shell: bash
56-
env:
57-
DRY_RUN: ${{ github.event_name == 'push' && 'none' || 'client' }}
60+
# env:
61+
# DRY_RUN: ${{ github.event_name == 'push' && 'none' || 'client' }}
5862
run: |
5963
kubectl apply \
60-
--dry-run ${{ env.DRY_RUN }} \
6164
--filename apply.yml \
6265
--namespace ${{ env.KUBERNETES_NAMESPACE }}

0 commit comments

Comments
 (0)