Skip to content

Commit

Permalink
Merge pull request #689 from alexander-demicev/etcdrestoretilt
Browse files Browse the repository at this point in the history
Setup tilt for etcd snapshot restore controller
  • Loading branch information
alexander-demicev authored Aug 27, 2024
2 parents 4e377f9 + 094fab9 commit 23f4d4b
Show file tree
Hide file tree
Showing 39 changed files with 561 additions and 43 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ generate-exp-etcdrestore-manifests-api: controller-gen ## Generate ClusterRole a
$(CONTROLLER_GEN) rbac:roleName=manager-role crd paths="./exp/etcdrestore/api/..." \
paths=./exp/etcdrestore/controllers/... \
paths=./exp/etcdrestore/webhooks/... \
output:crd:artifacts:config=./config/exp/etcdrestore/crd/bases \
output:rbac:dir=./config/exp/etcdrestore/rbac \
output:webhook:dir=./config/exp/etcdrestore/webhook \
output:crd:artifacts:config=./exp/etcdrestore/config/crd/bases \
output:rbac:dir=./exp/etcdrestore/config/rbac \
output:webhook:dir=./exp/etcdrestore/config/webhook \
webhook

.PHONY: generate-modules
Expand Down Expand Up @@ -523,7 +523,7 @@ release: clean-release $(RELEASE_DIR) ## Builds and push container images using
.PHONY: build-chart
build-chart: $(HELM) $(KUSTOMIZE) $(RELEASE_DIR) $(CHART_RELEASE_DIR) $(CHART_PACKAGE_DIR) ## Builds the chart to publish with a release
$(KUSTOMIZE) build ./config/chart > $(CHART_DIR)/templates/rancher-turtles-components.yaml
$(KUSTOMIZE) build ./config/exp/etcdrestore > $(CHART_DIR)/templates/rancher-turtles-exp-etcdrestore-components.yaml
$(KUSTOMIZE) build ./exp/etcdrestore/config/default > $(CHART_DIR)/templates/rancher-turtles-exp-etcdrestore-components.yaml
./scripts/process-exp-etcdrestore-manifests.sh $(CHART_DIR)/templates/rancher-turtles-exp-etcdrestore-components.yaml
cp -rf $(CHART_DIR)/* $(CHART_RELEASE_DIR)
sed -i'' -e 's@image: .*@image: '"$(CONTROLLER_IMG)"'@' $(CHART_RELEASE_DIR)/values.yaml
Expand Down
15 changes: 14 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if settings.get("trigger_mode") == "manual":
if settings.get("default_registry") != "":
default_registry(settings.get("default_registry"))

always_enable_projects = ["turtles"]
always_enable_projects = ["turtles", "turtles-etcdsnapshotrestore"]

projects = {
"turtles": {
Expand All @@ -50,6 +50,19 @@ projects = {
],
"kustomize_dir": "config/default",
"label": "turtles"
},
"turtles-etcdsnapshotrestore": {
"context": "exp/etcdrestore",
"image": "ghcr.io/rancher/turtles-etcd-snapshot-restore:dev",
"live_reload_deps": [
"main.go",
"go.mod",
"go.sum",
"controllers",
"webhooks",
],
"kustomize_dir": "config/default",
"label": "turtles-etcdsnapshotprestore"
}
}

Expand Down
Loading

0 comments on commit 23f4d4b

Please sign in to comment.