Skip to content

Commit

Permalink
Add architecture diagram (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura authored May 10, 2024
1 parent 8415bf5 commit afaad49
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ serverless.yaml
moduletemplate-latest.yaml
module-config.yaml

examples/python-text2img/resources/secrets/deepai.env
examples/python-text2img/resources/secrets/deepai.env

# draw.io
*.bkp
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

Serverless Operator allows deploying the [Serverless](https://kyma-project.io/docs/kyma/latest/01-overview/serverless/) component in the Kyma cluster in compatibility with [Lifecycle Manager](https://github.com/kyma-project/lifecycle-manager).

### Architecture Diagram
![Architecture](./architecture.svg)

## Install

Create the `kyma-system` namespace:
Expand Down
4 changes: 4 additions & 0 deletions architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions components/operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

##@ Verification

.PHONY: test
test: manifests generate fmt vet kubebuilder-assets ## Run unit tests.
KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=2m KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT=2m KUBEBUILDER_ASSETS="$(KUBEBUILDER_ASSETS)" go test ./... -coverprofile cover.out
Expand All @@ -46,7 +48,7 @@ build: generate fmt vet ## Build operator binary.
go build -o bin/operator main.go

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
run: manifests generate fmt vet ## Run a operator from your host.
go run ./main.go

.PHONY: docker-build-dev
Expand Down Expand Up @@ -87,7 +89,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
$(KUSTOMIZE) build $(CONFIG_OPERATOR)/crd | kubectl delete --ignore-not-found=$(IGNORE_NOT_FOUND) -f -

.PHONY: deploy-main
deploy-main: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
deploy-main: manifests kustomize ## Deploy operator to the K8s cluster specified in ~/.kube/config.
kubectl create namespace kyma-system || true
$(KUSTOMIZE) build $(CONFIG_OPERATOR_MAIN) | kubectl apply -f -

Expand Down Expand Up @@ -117,7 +119,7 @@ deploy-local: build-image-operator ## Deploy operator to the K8s cluster specifi
IMG=$(IMG) make deploy

.PHONY: undeploy
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with IGNORE_NOT_FOUND=true to ignore resource not found errors during deletion.
undeploy: ## Undeploy operator from the K8s cluster specified in ~/.kube/config. Call with IGNORE_NOT_FOUND=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build $(CONFIG_OPERATOR) | kubectl delete --ignore-not-found=$(IGNORE_NOT_FOUND) -f -

.PHONY: render-manifest
Expand Down

0 comments on commit afaad49

Please sign in to comment.