Skip to content

Commit 8230774

Browse files
committed
Move helm files to netbirdio/helms
1 parent 8ff64b4 commit 8230774

29 files changed

+10
-3212
lines changed

.github/workflows/helm.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/test-chart.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ go.work
2525
*.swp
2626
*.swo
2727
*~
28+
29+
# CRDs generated for testing
30+
crds/

Makefile

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ help: ## Display this help.
4343

4444
.PHONY: manifests
4545
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
46-
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=helm/kubernetes-operator/crds
46+
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=crds
4747

4848
.PHONY: generate
4949
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -123,32 +123,19 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
123123
- $(CONTAINER_TOOL) buildx rm operator-builder
124124
rm Dockerfile.cross
125125

126-
.PHONY: build-installer
127-
build-installer: manifests ## Generate a consolidated YAML with CRDs and deployment.
128-
mkdir -p manifests
129-
$(HELM) template --include-crds kubernetes-operator helm/kubernetes-operator > manifests/install.yaml
130-
131126
##@ Deployment
132127

133128
ifndef ignore-not-found
134129
ignore-not-found = false
135130
endif
136131

137-
.PHONY: install
138-
install: manifests ## Install CRDs into the K8s cluster specified in ~/.kube/config.
139-
$(KUBECTL) apply -f helm/kubernetes-operator/crds
140-
141-
.PHONY: uninstall
142-
uninstall: manifests ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
143-
$(KUBECTL) delete -f helm/kubernetes-operator/crds
144-
145132
.PHONY: deploy
146133
deploy: manifests ## Deploy controller to the K8s cluster specified in ~/.kube/config.
147-
$(HELM) install -n netbird --create-namespace kubernetes-operator --set operator.image.tag=$(word 2,$(subst :, ,${IMG})) helm/kubernetes-operator
134+
$(HELM) install -n netbird --create-namespace kubernetes-operator --set operator.image.tag=$(word 2,$(subst :, ,${IMG})) --repo https://netbirdio.github.io/helms kubernetes-operator
148135

149136
.PHONY: undeploy
150137
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.
151-
$(HELM) uninstall -n netbird kubernetes-operator
138+
$(HELM) uninstall -n netbird kubernetes-operator --no-hooks
152139

153140
##@ Dependencies
154141

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This operator easily provides NetBird access on Kubernetes clusters, allowing us
2424

2525
1. Add helm repository.
2626
```sh
27-
helm repo add netbirdio https://netbirdio.github.io/kubernetes-operator
27+
helm repo add netbirdio https://netbirdio.github.io/helms
2828
```
2929
2. (Recommended) Install [cert-manager](https://cert-manager.io/docs/installation/#default-static-install) for k8s API to communicate with the NetBird operator.
3030
```sh
@@ -36,7 +36,7 @@ kubectl create namespace netbird
3636
kubectl -n netbird create secret generic netbird-mgmt-api-key --from-literal=NB_API_KEY=$(cat ~/nb-pat.secret)
3737
```
3838
4. (Recommended) Create a [`values.yaml`](examples/ingress/values.yaml) file, check `helm show values netbirdio/kubernetes-operator` for more info.
39-
5. Install using `helm install --create-namespace -f values.yaml -n netbird netbird-operator netbirdio/kubernetes-operator`.
39+
5. Install using `helm install --create-namespace -f values.yaml -n netbird kubernetes-operator netbirdio/kubernetes-operator`.
4040
6. (Recommended) Check pod status using `kubectl get pods -n netbird`.
4141
6. (Optional) Create an [`exposed-nginx.yaml`](examples/ingress/exposed-nginx.yaml) file to create a Nginx service for testing.
4242
7. (Optional) Apply the Nginx service:
@@ -45,16 +45,6 @@ kubectl apply -f exposed-nginx.yaml
4545
```
4646

4747
> Learn more about the values.yaml options [here](helm/kubernetes-operator/values.yaml) and [Granting controller access to NetBird Management](docs/usage.md#granting-controller-access-to-netbird-management).
48-
#### Using install.yaml
49-
50-
> [!IMPORTANT]
51-
> install.yaml only includes a very basic template for deploying a stripped-down version of Kubernetes-operator.
52-
> This excludes any and all configurations for ingress capabilities and requires the cert-manager to be installed.
53-
54-
```sh
55-
kubectl create namespace netbird
56-
kubectl apply -n netbird -f https://raw.githubusercontent.com/netbirdio/kubernetes-operator/refs/heads/main/manifests/install.yaml
57-
```
5848
5949
### Version
6050
We have developed and executed tests against Kubernetes v1.31, but it should work with most recent Kubernetes version.

helm/kubernetes-operator/.helmignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

helm/kubernetes-operator/Chart.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

helm/kubernetes-operator/crds/netbird.io_nbgroups.yaml

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)