Skip to content

Commit 26a464e

Browse files
Fix tilt build (#7)
* fix tilt for generic developer Signed-off-by: raffaelespazzoli <[email protected]> * ignored image patch file Signed-off-by: raffaelespazzoli <[email protected]> * fixed helm chart build Signed-off-by: raffaelespazzoli <[email protected]>
1 parent 5869b97 commit 26a464e

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ bundle/
2828
bundle.Dockerfile
2929
charts/
3030
bundle*/
31+
config/local-development/tilt/replace-image.yaml

Diff for: Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ catalog-push: ## Push a catalog image.
210210
helmchart: kustomize manifests
211211
mkdir -p ./charts/${OPERATOR_NAME}/templates
212212
mkdir -p ./charts/${OPERATOR_NAME}/crds
213+
repo=${OPERATOR_NAME} envsubst < ./config/local-development/tilt/env-replace-image.yaml > ./config/local-development/tilt/replace-image.yaml
213214
$(KUSTOMIZE) build ./config/helmchart -o ./charts/${OPERATOR_NAME}/templates
214215
sed -i 's/release-namespace/{{.Release.Namespace}}/' ./charts/${OPERATOR_NAME}/templates/*.yaml
215216
rm ./charts/${OPERATOR_NAME}/templates/v1_namespace_release-namespace.yaml ./charts/${OPERATOR_NAME}/templates/apps_v1_deployment_${OPERATOR_NAME}-controller-manager.yaml

Diff for: config/local-development/tilt/env-replace-image.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
- op: replace
22
path: /spec/template/spec/containers/1/image
33
value:
4-
quay.io/$REPO/patch-operator:latest
4+
quay.io/$repo/patch-operator:latest
5+
- op: add
6+
path: /spec/template/spec/containers/1/args/-
7+
value:
8+
--zap-devel=true

Diff for: config/local-development/tilt/replace-image.yaml

-8
This file was deleted.

Diff for: readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ export repo=raffaelespazzoli
390390
docker login quay.io/$repo
391391
oc new-project patch-operator
392392
oc project patch-operator
393+
envsubst < config/local-development/tilt/env-replace-image.yaml > config/local-development/tilt/replace-image.yaml
393394
tilt up
394395
```
395396

0 commit comments

Comments
 (0)