Skip to content

Commit e13512a

Browse files
makefile deploy-operator (#110)
Signed-off-by: James-Milligan <[email protected]> Signed-off-by: James-Milligan <[email protected]>
1 parent 7471405 commit e13512a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ deploy: generate manifests kustomize ## Deploy controller to the K8s cluster spe
109109
undeploy: generate ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
110110
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
111111

112+
deploy-operator:
113+
kubectl create ns 'open-feature-operator-system' --dry-run=client -o yaml | kubectl apply -f -
114+
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml
115+
kubectl wait --for=condition=Available=True deploy --all -n 'cert-manager'
116+
kubectl apply -f config/webhook/certificate.yaml
117+
make deploy
118+
kubectl wait --for=condition=Available=True deploy --all -n 'open-feature-operator-system'
119+
112120
##@ Build Dependencies
113121

114122
## Location to install dependencies to

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ root@nginx:/# curl -X POST "localhost:8013/schema.v1.Service/ResolveString" -d '
9595
#### Create a local cluster with cert manager and our operator
9696

9797
1. Create a local cluster with MicroK8s or Kind (forward requests from your localhost:30000 to your cluster, see MicroK8s/Kind doc)
98-
1. `kubectl create ns 'open-feature-operator-system'`
99-
1. `kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.8.0/cert-manager.yaml`
100-
1. `kubectl apply -f config/webhook/certificate.yaml`
101-
1. `IMG=ghcr.io/open-feature/open-feature-operator:main make deploy`
98+
1. `IMG=ghcr.io/open-feature/open-feature-operator:main make deploy-operator`
10299

103100
#### Run the example
104101

0 commit comments

Comments
 (0)