Skip to content

Commit 083f998

Browse files
authored
remove generated deployment.yaml in favor of kubectl apply -k (#1501)
Closes #1500. `deployment.yaml` was the committed output of `kustomize build config/default`, added back when `kubectl` had no built-in kustomize support. `kubectl apply -k` has covered that for many releases. ## Migration ```diff -kubectl apply -f https://raw.githubusercontent.com/pomerium/ingress-controller/0-33-0/deployment.yaml +kubectl apply -k github.com/pomerium/ingress-controller/config/default?ref=0-33-0 ``` ## Compatibility Version branches (`0-32-0`, `0-33-0`) and all existing tags still contain `deployment.yaml`, so anyone pinned to a release keeps working. Only `main`, and therefore future releases, drops it. ## Follow-up Docs PR removing the last three raw-URL references: pomerium/documentation#2342
1 parent e5c839e commit 083f998

3 files changed

Lines changed: 1 addition & 1285 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
- id: end-of-file-fixer
77
exclude: "(integration/tpl/files/.*)"
88
- id: check-yaml
9-
exclude: "deployment.yaml"
109
- id: check-added-large-files
1110
- repo: https://github.com/syntaqx/git-hooks
1211
rev: v0.0.17
@@ -27,11 +26,3 @@ repos:
2726
types: ["go"]
2827
pass_filenames: false
2928
fail_fast: true
30-
- id: deployment
31-
name: deployment
32-
fail_fast: true
33-
language: system
34-
entry: make
35-
args: ["deployment"]
36-
types: ["yaml"]
37-
pass_filenames: false

‎Makefile‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,18 +197,13 @@ clean:
197197
@chmod -Rf u+w internal/ui || true
198198
@rm -rf internal/ui
199199

200-
.PHONY: deployment
201-
deployment:
202-
@echo "==> $@"
203-
@kustomize build config/default > deployment.yaml
204-
205200
.PHONY: docs
206201
docs: generated
207202
@echo "==> $@"
208203
@go run docs/cmd/main.go > reference.md
209204

210205
.PHONY: generate
211-
generate: docs deployment
206+
generate: docs
212207

213208
#
214209
# --- internal development targets

0 commit comments

Comments
 (0)