Skip to content

Commit

Permalink
feat: disable remote bases in kustomize overlays
Browse files Browse the repository at this point in the history
kustomize-controller 0.25.0+ introduced a flag to support remote
kustomization overlays by default. We don't use remote bases for
kustomizations (yet!) so we can safely disable it (as per recommendation
upstream).

See fluxcd/kustomize-controller#638

Signed-off-by: Tarun Gupta Akirala <[email protected]>
  • Loading branch information
takirala committed Jun 8, 2022
1 parent 5bf93d3 commit 8425213
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hack/flux/flux-update-kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- flux.yaml
patches:
- target:
group: apps
version: v1
kind: Deployment
name: kustomize-controller
patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --no-remote-bases=true
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
- --log-level=info
- --log-encoding=json
- --enable-leader-election
- --no-remote-bases=true
env:
- name: RUNTIME_NAMESPACE
valueFrom:
Expand Down

0 comments on commit 8425213

Please sign in to comment.