Vec 440 ct test chart #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
permissions: | |
contents: read | |
pull-requests: write | |
on: pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 | |
with: | |
version: latest | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.x' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 | |
- name: Create kind cluster | |
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde | |
- name: Setup Prerequisites | |
run: | | |
echo "Deploying AKO" | |
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.30.0/install.sh \ | |
| bash -s v0.30.0 | |
kubectl create -f https://operatorhub.io/install/aerospike-kubernetes-operator.yaml | |
echo "Waiting for AKO" | |
while true; do | |
if kubectl --namespace operators get deployment/aerospike-operator-controller-manager &> /dev/null; then | |
kubectl --namespace operators wait \ | |
--for=condition=available --timeout=180s deployment/aerospike-operator-controller-manager | |
break | |
fi | |
done | |
echo "Grant permissions to the target namespace" | |
kubectl create namespace aerospike | |
kubectl --namespace aerospike create serviceaccount aerospike-operator-controller-manager | |
kubectl create clusterrolebinding aerospike-cluster \ | |
--clusterrole=aerospike-cluster --serviceaccount=aerospike:aerospike-operator-controller-manager | |
echo "Set Secrets for Aerospike Cluster" | |
kubectl --namespace aerospike create secret generic aerospike-secret \ | |
--from-literal=features.conf="$(echo "${{ secrets.FEATURES_CONF }}")" | |
kubectl apply -f ci/aerospike.yaml --wait | |
- name: Setup avs prerequisites | |
run: | | |
echo "Deploy MetalLB" | |
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.4/config/manifests/metallb-native.yaml | |
kubectl wait --namespace metallb-system \ | |
--for=condition=ready pod \ | |
--selector=app=metallb \ | |
--timeout=90s | |
kubectl apply -f "charts/aerospike-vector-search/kind/config/metallb-config.yaml" | |
echo "Deploying Istio" | |
helm repo add istio https://istio-release.storage.googleapis.com/charts | |
helm repo update | |
helm install istio-base istio/base --namespace istio-system --set defaultRevision=default --create-namespace --wait | |
helm install istiod istio/istiod --namespace istio-system --create-namespace --wait | |
helm install istio-ingress istio/gateway \ | |
--values "charts/aerospike-vector-search/kind/config/istio-ingressgateway-values.yaml" \ | |
--namespace istio-ingress \ | |
--create-namespace \ | |
--wait | |
kubectl apply -f "charts/aerospike-vector-search/kind/config/gateway.yaml" --wait | |
kubectl apply -f "charts/aerospike-vector-search/kind/config/virtual-service-vector-search.yaml" --wait | |
- name: Run chart-testing (install) | |
run: | | |
cd chart/aerospike-vector-search | |
ct install --namespace aerospike \ | |
--target-branch ${{ github.event.repository.default_branch }} |