Skip to content

Commit

Permalink
Fix tilt build (#7)
Browse files Browse the repository at this point in the history
* fix tilt for generic developer

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>

* ignored image patch file

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>

* fixed helm chart build

Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>
  • Loading branch information
raffaelespazzoli authored Jan 20, 2022
1 parent 5869b97 commit 26a464e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ bundle/
bundle.Dockerfile
charts/
bundle*/
config/local-development/tilt/replace-image.yaml
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ catalog-push: ## Push a catalog image.
helmchart: kustomize manifests
mkdir -p ./charts/${OPERATOR_NAME}/templates
mkdir -p ./charts/${OPERATOR_NAME}/crds
repo=${OPERATOR_NAME} envsubst < ./config/local-development/tilt/env-replace-image.yaml > ./config/local-development/tilt/replace-image.yaml
$(KUSTOMIZE) build ./config/helmchart -o ./charts/${OPERATOR_NAME}/templates
sed -i 's/release-namespace/{{.Release.Namespace}}/' ./charts/${OPERATOR_NAME}/templates/*.yaml
rm ./charts/${OPERATOR_NAME}/templates/v1_namespace_release-namespace.yaml ./charts/${OPERATOR_NAME}/templates/apps_v1_deployment_${OPERATOR_NAME}-controller-manager.yaml
Expand Down
6 changes: 5 additions & 1 deletion config/local-development/tilt/env-replace-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
- op: replace
path: /spec/template/spec/containers/1/image
value:
quay.io/$REPO/patch-operator:latest
quay.io/$repo/patch-operator:latest
- op: add
path: /spec/template/spec/containers/1/args/-
value:
--zap-devel=true
8 changes: 0 additions & 8 deletions config/local-development/tilt/replace-image.yaml

This file was deleted.

1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ export repo=raffaelespazzoli
docker login quay.io/$repo
oc new-project patch-operator
oc project patch-operator
envsubst < config/local-development/tilt/env-replace-image.yaml > config/local-development/tilt/replace-image.yaml
tilt up
```

Expand Down

0 comments on commit 26a464e

Please sign in to comment.