Skip to content

Commit

Permalink
Install sail-operator v0.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cattermole <acatterm@redhat.com>
  • Loading branch information
adam-cattermole committed Oct 17, 2024
1 parent 6c269b6 commit 569f088
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 32 deletions.
11 changes: 0 additions & 11 deletions config/dependencies/istio/sail/deployment_patch.yaml

This file was deleted.

9 changes: 3 additions & 6 deletions config/dependencies/istio/sail/istio.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
apiVersion: operator.istio.io/v1alpha1
apiVersion: sailoperator.io/v1alpha1
kind: Istio
metadata:
name: default
spec:
version: v1.20.0
# Supported values for sail-operator v0.1.0 are [v1.22.4,v1.23.0]
version: v1.23.0
namespace: istio-system
# Disable autoscaling to reduce dev resources
values:
pilot:
autoscaleEnabled: false
rawValues:
gateways:
istio-ingressgateway:
autoscaleEnabled: false
10 changes: 0 additions & 10 deletions config/dependencies/istio/sail/kustomization.yaml

This file was deleted.

15 changes: 10 additions & 5 deletions make/istio.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,21 @@ istioctl-uninstall: istioctl ## Uninstall istio.
istioctl-verify-install: istioctl ## Verify istio installation.
$(ISTIOCTL) verify-install -i $(ISTIO_NAMESPACE)

SAIL_VERSION = 0.1.0
.PHONY: sail-install
sail-install: kustomize
$(KUSTOMIZE) build $(ISTIO_INSTALL_DIR)/sail | kubectl apply -f -
kubectl -n $(ISTIO_NAMESPACE) wait --for=condition=Available deployment istio-operator --timeout=300s
sail-install: helm
$(HELM) install sail-operator \
--create-namespace \
--namespace $(ISTIO_NAMESPACE) \
--wait \
--timeout=300s \
https://github.com/istio-ecosystem/sail-operator/releases/download/$(SAIL_VERSION)/sail-operator-$(SAIL_VERSION).tgz
kubectl apply -f $(ISTIO_INSTALL_DIR)/sail/istio.yaml

.PHONY: sail-uninstall
sail-uninstall: kustomize
sail-uninstall: helm
kubectl delete -f $(ISTIO_INSTALL_DIR)/sail/istio.yaml
$(KUSTOMIZE) build $(ISTIO_INSTALL_DIR)/sail | kubectl delete -f -
$(HELM) uninstall sail-operator

.PHONY: istio-install
istio-install:
Expand Down

0 comments on commit 569f088

Please sign in to comment.