Skip to content

Commit

Permalink
Remove obsolete fix, add --server-side to deploy-kind (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak authored May 28, 2024
1 parent acba911 commit 9d7c880
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions .mk/development.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ undeploy-kafka: ## Undeploy kafka.
kubectl delete kafka kafka-cluster -n $(NAMESPACE) --ignore-not-found=true
kubectl delete -f "https://strimzi.io/install/latest?namespace="$(NAMESPACE) -n $(NAMESPACE) --ignore-not-found=true

.PHONY: fix-ebpf-kafka-tls
fix-ebpf-kafka-tls:
@echo -e "\n==> Fix eBPF with Kafka on TLS: copying secrets to privileged namespace"
kubectl get secret flp-kafka -n $(NAMESPACE) -o yaml | yq 'del(.metadata)' | yq '.metadata.name = "flp-kafka"' | kubectl apply -n "$(NAMESPACE)-privileged" -f -
kubectl get secret kafka-cluster-cluster-ca-cert -n $(NAMESPACE) -o yaml | yq 'del(.metadata)' | yq '.metadata.name = "kafka-cluster-cluster-ca-cert"' | kubectl apply -n "$(NAMESPACE)-privileged" -f -
@echo -e "\n===> Restarting eBPF pods"
kubectl delete pods -n "$(NAMESPACE)-privileged" --all --force

.PHONY: deploy-grafana
deploy-grafana: ## Deploy grafana.
@echo -e "\n==> Deploy grafana"
Expand Down
2 changes: 1 addition & 1 deletion .mk/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ deploy-kind: install-cert-manager kustomize ## Deploy controller to the K8s clus
$(SED) -i -r 's~ebpf-agent:.+~ebpf-agent:main~' ./config/manager/manager.yaml
$(SED) -i -r 's~flowlogs-pipeline:.+~flowlogs-pipeline:main~' ./config/manager/manager.yaml
$(SED) -i -r 's~console-plugin:.+~console-plugin:main~' ./config/manager/manager.yaml
$(KUSTOMIZE) build config/k8s-olm/default | kubectl apply -f -
$(KUSTOMIZE) build config/k8s-olm/default | kubectl apply --server-side -f -

.PHONY: undeploy-kind
undeploy-kind: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
Expand Down

0 comments on commit 9d7c880

Please sign in to comment.