Skip to content

Commit

Permalink
operator: don't edit/kustomize files in the repo.
Browse files Browse the repository at this point in the history
Keep a kustomization.yaml.in file in the repo instead and use that
to seed kustomization.yaml before editing it.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Jan 10, 2024
1 parent 398fdf5 commit 4019f19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deployment/operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')

.PHONY: kustomize
KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
kustomize: kustomizations ## Download kustomize locally if necessary.
ifeq (,$(wildcard $(KUSTOMIZE)))
ifeq (,$(shell which kustomize 2>/dev/null))
@{ \
Expand Down Expand Up @@ -235,3 +235,9 @@ cleanup-crds: ## Clean up temporarily copied CRDs and CRs.
rm -f $(SAMPLE_DEST_DIR)/template-config.yaml
rm -f $(SAMPLE_DEST_DIR)/topologyaware-config.yaml
rm -f $(SAMPLE_DEST_DIR)/noderesourcetopology.yaml

.PHONY: kustomizations
kustomizations: config/manager/kustomization.yaml

config/manager/kustomization.yaml: config/manager/kustomization.yaml.in
@cp $< $@

0 comments on commit 4019f19

Please sign in to comment.