Skip to content

Commit

Permalink
Merge pull request #59 from flux-framework/test/generation-of-yaml
Browse files Browse the repository at this point in the history
testing generation of yaml
  • Loading branch information
vsoch committed Dec 30, 2022
2 parents cb239c2 + 32548b4 commit a5b4cb3
Show file tree
Hide file tree
Showing 3 changed files with 797 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | kubectl apply -f -

.PHONY: build-config
build-config: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > examples/dist/flux-operator.yaml

.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.
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
Expand Down
11 changes: 11 additions & 0 deletions docs/development/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@ $ make catalog-build
$ make catalog-push
```

## Build Operator Yaml

To generate the CRD to install to a cluster, we've added a `make build-config` command:

```bash
$ make build-config
```

That will generate a yaml to install the operator (with default container image) to a
cluster in `examples/dist`.

## Container Requirements

If you are looking to build a container to use with the Flux Operator, we have a set of
Expand Down

0 comments on commit a5b4cb3

Please sign in to comment.